The "me" in this case is the first child form (child1). Because I am attempting to call one child from another. I am hiding the child1 form and trying to show the second child form. I tried adding the show, but no luck. In the else part of the if statement I am calling the .show method and it didn't work there either. Still working on it.....
Duane L
Posts
-
Open/Close Forms VB.Net -
Open/Close Forms VB.NetOne of the articles I read said to Hide instead of close so I implemented it. It does 'hide' but I can't get the child form to show up when I call it from another child form.
-
Open/Close Forms VB.NetHere is the code.... If Not IsNothing(frmChaindata) AndAlso Not frmChaindata.IsDisposed Then 'form exists just show it and bring it to front frmChaindata.BringToFront() frmChaindata.Focus() frmChaindata.WindowState = FormWindowState.Normal Else Me.Cursor = System.Windows.Forms.Cursors.WaitCursor mdiMain.IsMdiContainer = True frmChaindata = New ChainData frmChaindata.MdiParent = mdiMain frmChaindata.Show() Me.Hide() 'mdiMain.ShowHideForms(frmChaindata) Me.Cursor = System.Windows.Forms.Cursors.Default End If When this code executes....nothing happens but the mdi form appearing with no child forms showing....weird....
-
Open/Close Forms VB.NetOk...I know there must be an easier way to do this....Has anyone created a windows form app using vb.net using an MDI and child forms? I am trying to open and close child forms. When I try to open or unhide (i have tried both ways) a new child form I get no results. Nothing happens, just my mdi form appears empty with no child forms. Can anyone lend their assistance? Thanks