datagrid
-
dear friends when the cursor enter the datagrid on the press of tab the cursor moves from one cell to another but i want the cursor to move from one control to another for eg I have 3 control in the form 1st textbox 2nd datagrid n 3rd button. On the load of the form the cursor focus will be on textbox on the press of tab the cursor will move to datagrid on tab again the cursor will move to the next cell in the datagrid but i want the cursor to focus on the button. How can i make it possible please help at your ealiest. Thanks
-
dear friends when the cursor enter the datagrid on the press of tab the cursor moves from one cell to another but i want the cursor to move from one control to another for eg I have 3 control in the form 1st textbox 2nd datagrid n 3rd button. On the load of the form the cursor focus will be on textbox on the press of tab the cursor will move to datagrid on tab again the cursor will move to the next cell in the datagrid but i want the cursor to focus on the button. How can i make it possible please help at your ealiest. Thanks
Protected Overrides Function ProcessCmdKey(ByRef msg As Message, ByVal keyData As Keys) As Boolean End Function This sub capture key messages before the form get's it. You can handle the key message manually from here and set the focus to the next control is keyData = Keys.Tab Try this, it's how I manage to control where the focus is on my application and it works fine! A programmer's life is good... or is it?? Ek dink nie so nie!