bloukewer
Well-known member
- Joined
- Jul 2, 2004
- Messages
- 88
- Programming Experience
- 3-5
The following code exist inside an event-handler for a button:
"Dim frmAdd as New frmAdd
frmAdd.Parent = Me
frmAdd.ShowDialog()"
I get the following error message when I press the button during run-time:
"An unhandled exception of type 'System.ArgumentException' occured in system.windows.forms.dll
Additional information: Cannot add a top-level control to a control."
This is really the root of 90% of the problems I posted on this forum, a solution would REALLY HELP VERY MUCH. Thanx in advance.
"Dim frmAdd as New frmAdd
frmAdd.Parent = Me
frmAdd.ShowDialog()"
I get the following error message when I press the button during run-time:
"An unhandled exception of type 'System.ArgumentException' occured in system.windows.forms.dll
Additional information: Cannot add a top-level control to a control."
This is really the root of 90% of the problems I posted on this forum, a solution would REALLY HELP VERY MUCH. Thanx in advance.