Smokeywade
Member
- Joined
- Sep 11, 2007
- Messages
- 22
- Programming Experience
- 3-5
When my application first loads the parent opens and I select my child form from toolstrip:
This works fine.
Now when I'm in the child window once I'm done with the needed updates successfully I want that form to close and reopen
so I call
Nothing happens I don't even get an error message. I've played around with the code numerous times and the only thing that worked was to have it open outside of the parent which I do not want to happen.
If anyone have any suggestions please help.
VB.NET:
'In parent open the form when option is clicked
Public Sub Showfrmitemreview(ByVal sender As Object, ByVal e As EventArgs) Handles itemreivewStripMenuItemA.Click, itemreviewStripMenuItemB.Click
Dim ChildForm As New frm_itemreview
ChildForm.MdiParent = Me
ChildForm.Show()
End Sub
This works fine.
Now when I'm in the child window once I'm done with the needed updates successfully I want that form to close and reopen
so I call
VB.NET:
'In child I call the sub thats located in parent
MDIParent1.Showfrmitemreview(Me, EventArgs.Empty)
Me.close
Nothing happens I don't even get an error message. I've played around with the code numerous times and the only thing that worked was to have it open outside of the parent which I do not want to happen.
If anyone have any suggestions please help.