Quantcast

Got Homework?

Connect with other students for help. It's a free community.

  • across
    MIT Grad Student
    Online now
  • laura*
    Helped 1,000 students
    Online now
  • Hero
    College Math Guru
    Online now

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

45g23 Group Title

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

  • 2 years ago
  • 2 years ago

  • This Question is Closed
  1. 45g23 Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    An error occurred creating the form. See Exception.InnerException for details. The error is: Object reference not set to an instance of an object.

    • 2 years ago
  2. 45g23 Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    thats just the full error i got

    • 2 years ago
  3. agdgdgdgwngo Group Title
    Best Response
    You've already chosen the best response.
    Medals 1

    You are referencing something that is not declared.

    • 2 years ago
  4. 45g23 Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    what does refrencing mean? Sorry english is not my main language

    • 2 years ago
  5. agdgdgdgwngo Group Title
    Best Response
    You've already chosen the best response.
    Medals 1

    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

    • 2 years ago
  6. 45g23 Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    does a form have to be somehow declared before it can be showed, the form exists by the way

    • 2 years ago
  7. 45g23 Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    worked for other forms

    • 2 years ago
  8. 45g23 Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    How can i show a form named Diaries when i want to get no errors what to use: show(), Visible = true, Enabled?

    • 2 years ago
  9. 45g23 Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    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

    • 2 years ago
  10. agdgdgdgwngo Group Title
    Best Response
    You've already chosen the best response.
    Medals 1

    Try Me.Show() instead

    • 2 years ago
  11. 45g23 Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    i cant use Me.Show() when i want to show another form not the one i have button on

    • 2 years ago
  12. agdgdgdgwngo Group Title
    Best Response
    You've already chosen the best response.
    Medals 1

    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

    • 2 years ago
  13. 45g23 Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    ill try that, but it looks like my code

    • 2 years ago
  14. 45g23 Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    got error, the same

    • 2 years ago
  15. 45g23 Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    dont know whats wrong there

    • 2 years ago
  16. 45g23 Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    i get error when i try to click the button

    • 2 years ago
  17. 45g23 Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    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

    • 2 years ago
  18. 45g23 Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    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.

    • 2 years ago
  19. Gary_Ahuja Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    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

    • 2 years ago
  20. Gary_Ahuja Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    isn't this a great link

    • 2 years ago
  21. Osirisis Group Title
    Best Response
    You've already chosen the best response.
    Medals 1

    "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.

    • 2 years ago
  22. 45g23 Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    thx but i already learning from him

    • 2 years ago
  23. 45g23 Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    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.

    • 2 years ago
  24. 45g23 Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    seems like the visual basic would be mad on me.

    • 2 years ago
  25. 45g23 Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    By the way its not VBA its Visual Basic 2008(sorry if im stupid)

    • 2 years ago
  26. 45g23 Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    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.

    • 2 years ago
  27. Osirisis Group Title
    Best Response
    You've already chosen the best response.
    Medals 1

    It might be easier to help if you pasted the relevant code or attached the working project.

    • 2 years ago
  28. 45g23 Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    got problem fixed thx to everyone who helped!

    • 2 years ago
    • Attachments:

See more questions >>>

Your question is ready. Sign up for free to start getting answers.

spraguer (Moderator)
5 → View Detailed Profile

is replying to Can someone tell me what button the professor is hitting...

23

  • Teamwork 19 Teammate
  • Problem Solving 19 Hero
  • You have blocked this person.
  • ✔ You're a fan Checking fan status...

Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.

This is the testimonial you wrote.
You haven't written a testimonial for Owlfred.