Error while loading document object reference not set to an instance of an object
-
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 :((:((:((
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."
-
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 :((:((:((
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
-
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 :((:((:((
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.
_
-
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 :((:((:((
-
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 :((:((:((
are you put any usercontrol on tabcontrol? remove tabcontrol and try on form only
-
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 :((:((:((
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?