How to set focus to a comboBox on a form?
Posted on 2007-08-08
Hi, I'm using .net 2 for windows application. How to set focus to a comboBox on a form? On this form on the right I have a tree and on the left I have a couple of comboBox and a couple of textboxes. How can I set focus to one of the comboBox when the form is loaded initially? Currently, the focus is on the root node of the tree. In the formload, I have put comboBox.Focus(); as the last line of code but it's still not working. thank you.