Results 1 to 5 of 5

Thread: How come?

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2004
    Posts
    908

    How come?

    How come?
    how come i can show from form1 to form2 but not from form2 to form3?


    error:Object reference not set to an instance of an object.



    though i did exactly the same...



    Private Sub cmdNext_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdNext.Click
    Dim OpentheForm3 As frmPurchaseRequisition3
    OpentheForm3.Show()
    Me.Hide()

    End Sub

  2. #2
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985
    Don't keep reposting threads

  3. #3
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428

    Re: How come?

    Originally posted by Goh
    How come?
    how come i can show from form1 to form2 but not from form2 to form3?


    error:Object reference not set to an instance of an object.



    though i did exactly the same...



    Private Sub cmdNext_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdNext.Click
    Dim OpentheForm3 As frmPurchaseRequisition3
    OpentheForm3.Show()
    Me.Hide()

    End Sub
    two things:
    I sent you a private mesage asking you to LOOK BACK at the threads that you post. People answer those and you can reply back to them... I'm not trying to be rude dont hesitate to ask questions.....but read peopl's answers after you ask something
    -two: it would be nice if you had a better descriptive title for your thread something like "can't load a form" or whatever


    anyways, change Dim OpentheForm3 As frmPurchaseRequisition3 to Dim OpentheForm3 As New frmPurchaseRequisition3 and it will work
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  4. #4
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985
    ^ I already told him that. He PMed me his code when I asked for it in the thread, then he made this thread.....

  5. #5
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    Originally posted by kasracer
    ^ I already told him that. He PMed me his code when I asked for it in the thread, then he made this thread.....
    errm hope he learns
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width