Versions des environnements
At first I placed the code in the valid event but from it i could not use commands like setfocus etc. so I decided to set code inside the lostfocus event. I tried with valid but i got into great problems and I falled in the deepest desperation !! Maybe i should have tried a little bit more...but i had to put things at least as they were before I tried !!!
>Allessio
>
>Just off the top of my head, wouldn't it still be in the valid event of the control in the column? Now whether you'd have to return -1 to jump to the previous column, or more than this to jump up and down thrue the hierarchy I don't know.
>
>Alternatively, can't you just issue SetFocus onto the required column when the condition is met?
>
>Help?
>
>Terry
>
>>I got into problems in managing grids. Actually I need to control the tab order within a row of the grid.In other words, I am on a column x and i want to jump to column x-1 if a certain condition does not occurs.
>>Where should I place code ? I tried with the lostfocus event of the control but it does not work .
>>
>>Another thing :-) I build a txtbox class wich test f th user made change.
>>I put a property called oldvalue.
>>In the when event i set this property = to the actual control value.
>>in the lostfocus event i test if the control value is equal to the oldvalue,
>>if so i call a method (changevalue() ) is it right ? It happen that sometimes it does not test the value properly, it does not set properly the oldvalue when I enter the control. But it happens sometimes, the first time I enter the control, if I enter the control again and made a change it works fine.
>>thank you all
>>Alessio
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement