Oct 19, 2009 at 11:42 AM
Edited Oct 27, 2009 at 1:33 PM
Edit - I changed the title of the thread ("Problem finding components in an MDI child window") after finding the source of my problem.
Here is the original issue:
I'm having trouble accessing the components of a MDI child. I find the window but I can't seem to get a hold of the components within it. Is there something that I am missing? Can I convert the UIItemContainer to
a window somehow? VB isn't my native language so it's not really helping me.
Dim application As Application = application.Launch(path)
Dim mainWindow As UIItems.WindowItems.Window = application.GetWindow("MainWindow", InitializeOption.NoCache)
Dim menuChoice As MenuItems.Menu = mainWindow.MenuBar.MenuItem("MenuChoice")
Dim subMenuChoice = menu.SubMenu("SubMenuChoice")
Dim jwindow As UIItems.UIItemContainer = mainWindow.MdiChild(SearchCriteria.ByControlType(ControlType.Window))
Dim myPanel As UIItems.Panel = jwindow.Get(Of Panel)("Panel1")
Assert.IsNotNull(myPanel) 'Fails, I can't find it.