Opening a new form from a TreeView
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);
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?
Found the answer to this issue on MSDN forums:
The key is to use the MouseMove event, since it fires last.
Hope this helps anyone with a similar issue!
By vikramjparekh in forum ASP.NET
Last Post: 07-24-2005, 10:21 PM
By MacataQ in forum VB Classic
Last Post: 07-05-2005, 12:00 PM
By Sayana Srinivasa Rao in forum .NET
Last Post: 08-22-2002, 04:26 AM
By Al Guten in forum .NET
Last Post: 04-11-2002, 06:48 PM
By Judie in forum VB Classic
Last Post: 03-23-2002, 02:55 PM
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center