|
If this is dotnet are you using the 'tab order' wizard under the 'view' menu? or are you creating controls at run-time?
if your using vb6 then go in reverse order and set every tabindex to '0'. that will auto-increment every control's tab index that you set before the last one you set to '0'. or are you creating controls at run-time?
|
|
|
|
|
hello frnd,
thanks it is now working fine...
|
|
|
|
|
Hi all, I've stumbled onto a problem I can't find a solution to.
I have a custom data grid that has a auto complete feature. This feature needs to look at the data for the current document (this is not a sql type grid.) Since the program is a MDI interface, i have a set of variables that serve as the common point for any member that needs data about the current document.
The problem i have run into is that I need to reload the variables that are pointing to the common point variables when the current document changes, rather than just changing the common document pointers.
If this isn't clear:
Display-------->Selected document---------------->document collection
I want to make the display look at the selected document address, rather than the data in the document collection.
I've read the marshalling info, but since this is an auto-complete that is updated with info, it appears that copying to unmanaged memory will not solve the issue.
Anyone have any ideas short of creating a delegate function?
Thanks,
Tom
|
|
|
|
|
Your description of the problem is making the assumption that we know how you designed your app, so this is a generalization.
The "current document" in an application would normally be a pointer to an instance of the document. You wouldn't normally have to set any "global" variables to match the document since each document class would be keeping track of all the data that is specific to that document. The "current document" pointer would be used to get at that data.
If your document class implements callbacks, or some other methods or async methods, delegates would be the best way to go.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
I not sure y everytime i pass the data from DATAGRID to EXCEL above more then 10 row then the datagrid pointer will skip after row 10 until the end.
So my excel will look like this let said u use number as the data value.i showing 1-15 data.
1
2
3
4
5
6
7
8
9
10
15
15
15
15
15
I just found the solution , wat a crazy solution i never expect.
I just drag the datagrid height longer then solve the problem .HAH!;P
-- modified at 21:16 Thursday 7th December, 2006
|
|
|
|
|
You have asked this question any number of times... did you actually debug and see what happens when the row becomes 10 or 11?
|
|
|
|
|
there is no coding error at all i found out ! i solve it by only draging the data grid height longer! oh my..
|
|
|
|
|
Are you sure just increasing the height would do it, then? What happens if the number of rows increased to, say, 100?
|
|
|
|
|
yes, recently the data i passing not really reach until 100. But u r, u may try go to the datagrid properties change the row length small, normally is 200 so maybe u try 100-50 u can see the row size was squez smaller. so that mean the Height of ur datagrid can contain more row inside.
Cause i found out if my height is smaller then the data which suppose to show. Let said
My datagrid height just able to show 10 row at one time.Even datagrid able for u to click scroll down to next row but it will have problem when passing to EXCEL.
so i just drag the height higher to able to show all the data out without using the scoll. Hope u understand wat i mean...
|
|
|
|
|
That is not really going to solve your problem, I think. What if you are unable to predict the number of rows that your data grid will display? You cannot infinitely decrease the row height...
|
|
|
|
|
can predict by some measurement of course, anyway is already solve already been tested the system.thanks anyway.
|
|
|
|
|
Looking at some of your previous questions you have a habit of adding 'urgent' to the title.
____________________________________________________
If at first you don't succeed, skydiving might not be for you.
|
|
|
|
|
leckey wrote: some of your previous questions you have a habit of adding 'urgent' to the title.
I know, it's getting old. Hey, I need financial freedom [Urgent] :->
You will see a delete button on each of your posts. Press it. - Colin Angus Mackay
|
|
|
|
|
cause is very urgent, but anyway i solve most of it myself. maybe just to express some stress in the forum then
|
|
|
|
|
Well, "urgent" doesn't have any meaning in the forums. Noone is going to scan the subjects and immediately go to the ones that say "urgent!". Noone just sits here waiting for the next post to show up so they can just jump right on it.
If your question was that urgent, your best source of information is Google or staying up yourself until 3:00am pounding on the problem until you get it solved.
Actually, putting "urgent" in your subject line, or anywhere else in your post, will likely get you ignored for a while!
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
i learn to put this urgent is because i saw ppl do it.
sure i woundnt sit and wait anwser while i doing research and i wait anyone able to find out the solution more faster then me, anyway now this question i got my own solution from myself. so i dont mind they ignore my question or watever, as long as i happy to reless some of my recent problem here , maybe is a kind of way to reless my stress.
And i more and more like to put bracket [xxx] anything inside, so is easy for me to know where is my post .
FORUM FREEdom anyway
|
|
|
|
|
campbells wrote: i learn to put this urgent is because i saw ppl do it.
Then you've also seen us tell other people NOT to do it.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
so sorry didnt seend b4 this is the first time. just knew it. but wats the big deal? just an extra word anyway. to express some mood.
|
|
|
|
|
campbells wrote: just an extra word anyway. to express some mood.
Though it is just a word, it is seen as being rude.
Some people have a memory and an attention span, you should try them out one day. - Jeremy Falcon
|
|
|
|
|
campbells wrote: i learn to put this urgent is because i saw ppl do it.
And you haven't seen some of the nasty replies?
Some people have a memory and an attention span, you should try them out one day. - Jeremy Falcon
|
|
|
|
|
wat nasty replies happen recently in the forum?
I guess maybe the codeproject adminstration should give some notice to the member what should write and what whould not in the forum.
|
|
|
|
|
campbells wrote: anyway i solve most of it myself
Good for you
campbells wrote: just to express some stress in the forum
But most people in these CP forums do not respond well to "urgent."
Some people have a memory and an attention span, you should try them out one day. - Jeremy Falcon
|
|
|
|
|
campbells wrote: ADODC
I'd like to help but I don't feel like Googling it for you.
|
|
|
|
|
Where's the question??
|
|
|
|
|
ChandraRam wrote: Where's the question??
It's gone now. There has been a trend of people deleting their posts after someone has answered.
You will see a delete button on each of your posts. Press it. - Colin Angus Mackay
|
|
|
|