anonymous
  • anonymous
Need help with visual basic 2008, It is a really simple script to show another form Diaries.Show() and got an error like this Exception.InnerException
Computer Science
  • Stacey Warren - Expert brainly.com
Hey! We 've verified this expert answer for you, click below to unlock the details :)
SOLVED
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.
chestercat
  • chestercat
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
anonymous
  • anonymous
An error occurred creating the form. See Exception.InnerException for details. The error is: Object reference not set to an instance of an object.
anonymous
  • anonymous
thats just the full error i got
anonymous
  • anonymous
You are referencing something that is not declared.

Looking for something else?

Not the answer you are looking for? Search for more explanations.

More answers

anonymous
  • anonymous
what does refrencing mean? Sorry english is not my main language
anonymous
  • anonymous
A reference is simply a value that allows indirect access to another value. if you do this Dim x As Integer = 8 x is now a reference to the value 8. Before you use objects make sure you declare and initialize them using the Dim statement
anonymous
  • anonymous
does a form have to be somehow declared before it can be showed, the form exists by the way
anonymous
  • anonymous
worked for other forms
anonymous
  • anonymous
How can i show a form named Diaries when i want to get no errors what to use: show(), Visible = true, Enabled?
anonymous
  • anonymous
I want to make it so that when i press a button another form will open and the form i had the button on will close
anonymous
  • anonymous
Try Me.Show() instead
anonymous
  • anonymous
i cant use Me.Show() when i want to show another form not the one i have button on
anonymous
  • anonymous
first form button 1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Form2.Show() 'This code call the second form to be displayed Me.Hide() ' This code hides the first form when the second form is displayed. End Sub
anonymous
  • anonymous
ill try that, but it looks like my code
anonymous
  • anonymous
got error, the same
anonymous
  • anonymous
dont know whats wrong there
anonymous
  • anonymous
i get error when i try to click the button
anonymous
  • anonymous
its not only a show script that will show another form, just a part of my project, The project is a Menu where you can choose: Create new account Log In exit Its saves accounts to folder that it creates in shared documents it can be used to create diaries and edit them
anonymous
  • anonymous
i had a version of that program ready in console not forms, when i decided to take the same thing to forms, just because forms has many more features.
anonymous
  • anonymous
hey if any problem u can go to this site http://www.thenewboston.com/ these are 100s of grt videos for learning VB or any other pro. language
anonymous
  • anonymous
isn't this a great link
anonymous
  • anonymous
"Object reference not set to an instance of an object" refers to a undeclared variable as mentioned above. You need to create an instance of the object prior to accessing it. I haven't played with VBA, but with Java it's managed by: ObjectType Objectname = new ObjectType; You should have something similar in VBA.
anonymous
  • anonymous
thx but i already learning from him
anonymous
  • anonymous
The problem i have is not something that i cant do Form1.Show() I have no idea why it does not work, its just impossible, im 100% sure that i made all correct.
anonymous
  • anonymous
seems like the visual basic would be mad on me.
anonymous
  • anonymous
By the way its not VBA its Visual Basic 2008(sorry if im stupid)
anonymous
  • anonymous
i have created 2 forms already so there is no change that i have to create that first, I think the computer doesn't know whats wrong too.
anonymous
  • anonymous
It might be easier to help if you pasted the relevant code or attached the working project.
anonymous
  • anonymous
got problem fixed thx to everyone who helped!

Looking for something else?

Not the answer you are looking for? Search for more explanations.