O
Ooogy
Hey there kind folks. Maybe someone out there can tell me where I'm
going wrong here.
I have a winform MDI app with a parent form ("MDIHMI.vb") and a child
form ("frmEMSearch"). On frmEMSearch, is a tab control with 4 tab
pages; the first one (index 0) is called "tabEpiDef". I have a menu
bar across the top of MDHMI where one of the options should bring
frmEMSearch up if it's not already of course, and if it is, switch
over to the tabEpiDef tab page.
In coding the click event for the menu item, no matter what I do, I
cant seem to bring the first tab page to the front. It seems like
I've tried everything. None of these seem to work (individually, or
in groups)...
frmEMSearch.Controls("TabControl1").Controls("tabEpiDef").BringToFront()
frmEMSearch.TabControl1.SelectedIndex = 0
newForm.TabControl1.SelectedIndex = 0
frmEMSearch.Controls("TabControl1").Controls("tabEpiDef").Select()
frmEMSearch.Controls("TabControl1").Controls("tabEpiDef").BringToFront()
frmEMSearch.TabControl1.SelectedIndex = 0
frmEMSearch.TabControl1.SelectedTab.BringToFront()
frmEMSearch.Controls("tabcontrol1").Select()
frmEMSearch.TabControl1.TabPages(0).Select()
frmEMSearch.TabControl1.TabPages(0).Show()
frmEMSearch.TabControl1.TabPages(0).BringToFront()
newForm.tabEpiDef.Select()
newForm.tabEpiDef.BringToFront()
newForm is instantiated immediately before all the above with...
Dim newForm As New frmEMSearch
Is there some sort of special way I'm not aware of to refer to a child
form in an MDI app? Can anyone give me a clue as to what direction I
should be looking to for an answer to this seemingly easy task?
Thanks VERY much in advance...Ooogy
going wrong here.
I have a winform MDI app with a parent form ("MDIHMI.vb") and a child
form ("frmEMSearch"). On frmEMSearch, is a tab control with 4 tab
pages; the first one (index 0) is called "tabEpiDef". I have a menu
bar across the top of MDHMI where one of the options should bring
frmEMSearch up if it's not already of course, and if it is, switch
over to the tabEpiDef tab page.
In coding the click event for the menu item, no matter what I do, I
cant seem to bring the first tab page to the front. It seems like
I've tried everything. None of these seem to work (individually, or
in groups)...
frmEMSearch.Controls("TabControl1").Controls("tabEpiDef").BringToFront()
frmEMSearch.TabControl1.SelectedIndex = 0
newForm.TabControl1.SelectedIndex = 0
frmEMSearch.Controls("TabControl1").Controls("tabEpiDef").Select()
frmEMSearch.Controls("TabControl1").Controls("tabEpiDef").BringToFront()
frmEMSearch.TabControl1.SelectedIndex = 0
frmEMSearch.TabControl1.SelectedTab.BringToFront()
frmEMSearch.Controls("tabcontrol1").Select()
frmEMSearch.TabControl1.TabPages(0).Select()
frmEMSearch.TabControl1.TabPages(0).Show()
frmEMSearch.TabControl1.TabPages(0).BringToFront()
newForm.tabEpiDef.Select()
newForm.tabEpiDef.BringToFront()
newForm is instantiated immediately before all the above with...
Dim newForm As New frmEMSearch
Is there some sort of special way I'm not aware of to refer to a child
form in an MDI app? Can anyone give me a clue as to what direction I
should be looking to for an answer to this seemingly easy task?
Thanks VERY much in advance...Ooogy