Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Learning Visual Basic Problem

Options
  • 30-01-2007 1:48am
    #1
    Registered Users Posts: 1,552 ✭✭✭


    Im trying to teach myself visual basic via online tutorials.
    I downloaded visual basic 2005 express edition.
    Ive only started the tutorial and Im already having problems.
    The tutorial is aimed at visual basic 6 and I thought it would be the same.

    I tried this code

    Public Class Form1

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    Form1.Show()
    Print("Welcome to the Visual Basic Tutorial")
    End Sub
    End Class


    It comes up with this error

    'WindowsApplication2.Form1' cannot refer to itself through its default instance; use 'Me' instead.

    Form1.Show() is the problem apparently its use has been changed.
    Anyone now how you use Show() in the new visual C++ edition?


Comments

  • Closed Accounts Posts: 17,208 ✭✭✭✭aidan_walsh


    Visual Basic 6 is not the same thing as Visual Basic.NET. VB.NET is a pretty radical departure from VB of old in many ways.

    Try some proper .NET-based tutorials, like these


  • Registered Users Posts: 1,552 ✭✭✭quinnd6


    Cool thanks


Advertisement