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
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Learning Visual Basic Problem

  • 30-01-2007 12:48am
    #1
    Registered Users, Registered Users 2 Posts: 1,559 ✭✭✭


    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, Registered Users 2 Posts: 1,559 ✭✭✭quinnd6


    Cool thanks


Advertisement