C# Application Programming
-
hi there!, how can i change the focus so the input goes just to the panel. for example in my program when i press enter or space one of the buttons on the toolbar works "cose in my program i use left and right keys and then enter!" my input goes to mainform and not to panel wich on mainform is there anyway just to disable input to toolBar. i think its hard to understand my question good luck.
-
hi there!, how can i change the focus so the input goes just to the panel. for example in my program when i press enter or space one of the buttons on the toolbar works "cose in my program i use left and right keys and then enter!" my input goes to mainform and not to panel wich on mainform is there anyway just to disable input to toolBar. i think its hard to understand my question good luck.
i couldnt follow most of your question, but maybe this will help.. you should set focus to the control (textbox, etc.) that you want to have the initial focus.. create an OnLoad() handler for your mainform, and after the panel is displayed call:
this.myPanel.Focus();
or in your OnLoad() of the panel call
this.myTextBox.Focus();
still a newb.. cut me some slack :P -dz