Results 1 to 2 of 2

Thread: "Object reference not set to an instance of an object"

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2007
    Location
    Karachi
    Posts
    551

    "Object reference not set to an instance of an object"

    i have windows form and on close button i write following line

    this.close();

    but when i click on the form it give me an error



    ""Object reference not set to an instance of an object""


    any idea. any urgent help would be highly appreciated!!

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: "Object reference not set to an instance of an object"

    Look at the exception's stack trace. The IDE provides you with plenty of information so make use of it.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width