Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Form Not Loading

Status
Not open for further replies.

kurie

Programmer
Jun 4, 2008
170
ZA
Does anyone know the reason why a form wont load vb.net.
It loads the first time but when i close and want to close it it wont load. insteady it throws an exception.
this is how im doing it
try
Dim frmQuestions As New Questions
frmQuestions.Show()
Catch ex As Exception
MsgBox(ex.Message)
end try
The message box is empty, is there a betta way to catch the excption so that i know why its not loading.
 
put a breakpoint in your code against the line
Catch Ex as Exception

then when the exception is raised you can view the details in the code windows

i have never known an exception message be blank though
 
Thank you very much.
I was a bit suprised with the results as well.
But i have managed to solve the problem, the form was loading another form first and the error was inside the second form.
Thank you very much.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top