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 while loading document object reference not set to an instance of an object

Error while loading document object reference not set to an instance of an object

Scheduled Pinned Locked Moved Visual Basic
helpdesign
7 Posts 6 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.
  • D Offline
    D Offline
    DODO
    wrote on last edited by
    #1

    Hello: I am dying here I cannot get my application in design mode all I get is a white page with this error in what did I do Please help cause I am new to vb thanks :((:((:((

    R D N D N 6 Replies Last reply
    0
    • D DODO

      Hello: I am dying here I cannot get my application in design mode all I get is a white page with this error in what did I do Please help cause I am new to vb thanks :((:((:((

      R Offline
      R Offline
      Ray Cassick
      wrote on last edited by
      #2

      Are you inheriting your forms from anything (visual inheritance)? I think this error can be caused in some cases by that.


      Paul Watson wrote: "At the end of the day it is what you produce that counts, not how many doctorates you have on the wall." George Carlin wrote: "Don't sweat the petty things, and don't pet the sweaty things." Unknown wrote: "I love long walks, especialy taken by those that annoy me." Paraphrased from TMNT: "Cricket? You have to know what a crumpet is to understand Cricket."


      1 Reply Last reply
      0
      • D DODO

        Hello: I am dying here I cannot get my application in design mode all I get is a white page with this error in what did I do Please help cause I am new to vb thanks :((:((:((

        D Offline
        D Offline
        Danny Blanchard
        wrote on last edited by
        #3

        Are you using any ActiveX controls? I've had similar problems when I load up my projects on machines that don't have all the required ActiveX controls for my program. The consequence is that Visual Studio won't know how to display the control in design mode, and therefore you get a nice blank page with some useless message on it. If you are using ActiveX controls, you can check under References in the Solution Explorer to see if you are missing any references on the machine. If this is the case, try reinstalling the ActiveX control and that might fix it for you. If this is not the case, then perhaps you should post the error message you've been getting to give us all an idea of what's going on. Hope this helps. Daniel E. Blanchard

        1 Reply Last reply
        0
        • D DODO

          Hello: I am dying here I cannot get my application in design mode all I get is a white page with this error in what did I do Please help cause I am new to vb thanks :((:((:((

          N Offline
          N Offline
          Nic Rowan
          wrote on last edited by
          #4

          You can also get it if you try use an object that you havent declared as New. eg: Dim oMyObject as New ObjectType() oMyObject.ObjectFunct = "some value" OR -- Dim oMyObject as ObjectType oMyObject = New ObjectType() oMyObject.ObjectFunct = "some value"_

          ------------------------------------------ I beat the internet - the end guy is hard.

          _

          1 Reply Last reply
          0
          • D DODO

            Hello: I am dying here I cannot get my application in design mode all I get is a white page with this error in what did I do Please help cause I am new to vb thanks :((:((:((

            D Offline
            D Offline
            DODO
            wrote on last edited by
            #5

            Thanks alot guys it turned out to be something that I did I changed the folder name

            1 Reply Last reply
            0
            • D DODO

              Hello: I am dying here I cannot get my application in design mode all I get is a white page with this error in what did I do Please help cause I am new to vb thanks :((:((:((

              N Offline
              N Offline
              nguyentuancuong
              wrote on last edited by
              #6

              are you put any usercontrol on tabcontrol? remove tabcontrol and try on form only

              1 Reply Last reply
              0
              • D DODO

                Hello: I am dying here I cannot get my application in design mode all I get is a white page with this error in what did I do Please help cause I am new to vb thanks :((:((:((

                S Offline
                S Offline
                silverbeam
                wrote on last edited by
                #7

                Public Function addplayer(ByVal player As String, ByVal score As Integer) As String() Dim please() As String Dim studx As CPlayer studx = New CPlayer(player, score) 'passes player name and score to studx? ReDim Preserve array(number) '<<< must be 'sets the size of the array array(number) = studx 'passes playername and score to array? please = buildarray() Return please End Function #End Region #Region "should build array" Private Function buildarray() As String() Dim j As Integer Dim a(number - 1) As String For j = 0 To number - 1 a(j) = array(j).ToString '<--- 'it blows up each time it gets to here Next Return a End Function this is in my Cplayer class Public Overrides Function toString() As String Dim strtemp As String strtemp = Me.player & " : " & CStr(Me.score) Return strtemp End Function can anybody help with this?

                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