Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Error Message

Error Message

Scheduled Pinned Locked Moved Visual Basic
helpquestiondatabase
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    morteza57
    wrote on last edited by
    #1

    hi, i have a windows application. in load event of my form i retrieve data from " Microsoft Access" database. when i build or run form,i see several Error MessageBox with this content : "object reference not set to an instance of an object ". after that i submit these,Program Runs Successfully!! what is my problem? thanks

    C 1 Reply Last reply
    0
    • M morteza57

      hi, i have a windows application. in load event of my form i retrieve data from " Microsoft Access" database. when i build or run form,i see several Error MessageBox with this content : "object reference not set to an instance of an object ". after that i submit these,Program Runs Successfully!! what is my problem? thanks

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Your main problem appears to be that you can't decide what account to post with, or what language you're using. Or did a different user just happen to post the exact same question in the C# forum ?

      Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

      M 1 Reply Last reply
      0
      • C Christian Graus

        Your main problem appears to be that you can't decide what account to post with, or what language you're using. Or did a different user just happen to post the exact same question in the C# forum ?

        Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

        M Offline
        M Offline
        morteza57
        wrote on last edited by
        #3

        Dear Christian Graus I am programmer with both C# and VB It happened many times ,i Asked my problem in both C# and VB forums and i accept my answer in only one of theme. Thanks

        D 1 Reply Last reply
        0
        • M morteza57

          Dear Christian Graus I am programmer with both C# and VB It happened many times ,i Asked my problem in both C# and VB forums and i accept my answer in only one of theme. Thanks

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          That message means you tried to set a property or call a method on a class that wasn't instantiated. The most common cause is that you assumed you'd get back an object from some kind of query, but instead, you got back Nothing and tried to use it or make some modification to it.

          Dave Kreskowiak Microsoft MVP - Visual Basic

          M 1 Reply Last reply
          0
          • D Dave Kreskowiak

            That message means you tried to set a property or call a method on a class that wasn't instantiated. The most common cause is that you assumed you'd get back an object from some kind of query, but instead, you got back Nothing and tried to use it or make some modification to it.

            Dave Kreskowiak Microsoft MVP - Visual Basic

            M Offline
            M Offline
            morteza57
            wrote on last edited by
            #5

            Thank you MR Dave Kreskowiak

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups