0

In my VB.NET program i have greated, i am getting the above error with the following description

An error occurred creating the form. See Exception.InnerException for details. The error is: Object variable or With block variable not set.

The debugger doesnt point me towards any actual code to fix, so i am stumped.

How would I go about debugging this error?

Thanks.

(PS, I am learning VB.NET at the moment, the program i am making is an example from a book)

3
Contributors
4
Replies
9
Views
10 Years
Discussion Span
Last Post by arjunsasidharan
0

Single step thru the load. Most of the time you are referencing something that hasn't been loaded. Such as setting a check box but it hasn't been created yet.

0

Single step thru the load. Most of the time you are referencing something that hasn't been loaded.

How would I do this?

I am still learning, I thought the debugger should tell me where the error is.

0

You would expect the debuger to tell you that but it doesn't. Press the F8 key to single step thru the code. You will run into a line where you will get an error message.

0

or may be you can use BreakPoints to find the Error. On your form_load event on the left of your screen set a breakpoint(refer the book how breakpoint works) and Press F9 or F10 to cycle through your code.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.