Gunship919
04-25-2006, 06:02 PM
I have a TreeView that I use to navigate to a new form. In an AfterSelect event method for the TreeView I use the following code to open the new form:
XPMApp.Detail = new DetailForm(this);
XPMApp.Detail.Show();
XPMApp.Detail.Focus();
The problem is that the new form opens and flashes in front on me, but focus goes back to/stays with the 1st form, and specifically the selected treeview.
Any idea how to set the focus properly? Am I using the wrong event handler?
XPMApp.Detail = new DetailForm(this);
XPMApp.Detail.Show();
XPMApp.Detail.Focus();
The problem is that the new form opens and flashes in front on me, but focus goes back to/stays with the 1st form, and specifically the selected treeview.
Any idea how to set the focus properly? Am I using the wrong event handler?