View Single Post
  #1 (permalink)  
Old April 3rd, 2011, 05:40 AM
Tony1997 Tony1997 is offline
Registered User
Join Date: Apr 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Question Beginning Microsoft VB 2010

Hello everyone.
Im now reading the VB 2010 beginner book by Thearon Wills and Bryan Newsome. im 14 years old and im currently stuck. i tried to code the variable program yesterday but something went wrong. every code is exactly the same like in the book. This is at Page 40. help please!

Public Class Form1

    Private Sub btnAdd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAdd.Click
        Dim intNumber As Integer
        intNumber = 27
        intNumber = intNumber + 1
        MessageBox.Show("Value of intNumber + 1 = " & intNumber.ToString, _ "Variables")

    End Sub
End Class

Last edited by Tony1997; April 3rd, 2011 at 10:14 AM..