Results 1 to 2 of 2

Thread: Can't load form in VB.NET

  1. #1

    Thread Starter
    Frenzied Member CyberCarsten's Avatar
    Join Date
    Sep 1999
    Location
    Aalborg Ø, Denmark
    Posts
    1,544

    Can't load form in VB.NET

    Well, I have been programming in C for about a year, and I have completely forgotten how to use vb .........
    I am trying to load a form in vb.net, but it doesn't work....

    VB Code:
    1. Form2.Show

    I get the following error:

    C:\Documents and Settings\Carsten H Thomsen\My Documents\Visual Studio Projects\PhysicsCalc\Form1.vb(63): Reference to a non-shared member requires an object reference.
    razor
    Software Engineer Student, Aalborg University, Denmark
    http://www.cs.auc.dk

    My email at AUC: will get a new email soon
    My website: http://www.razorsoftware.net


    Windows XP Pro/ Gentoo Linux (Laptop)
    Windows XP Pro (Home PC)

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    VB Code:
    1. Dim frm2 As New form2
    2. frm2.show

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