View Single Post
  #1 (permalink)  
Old 05-08-2008, 08:01 PM
dream dream is offline
Newbie
 
Join Date: May 2008
Posts: 7
Rep Power: 0
dream is on a distinguished road
Default Creating a Class in Visual Studios.Net (Visual Basic Section)

Hello, I am new to using Visual Studios.Net. I am trying to write a class using Visual Studios.Net in the Visual Basic section. Could someone tell me what I am doing wrong?

Module Module1

Public Class MyClassName

End Class
Sub New()
Dim intVariable As Integer
intVariable = 0

End Sub
Property Variable() As Integer
Get
Return Variable

End Get
Set(ByVal Value As Integer)
Variable = Value
End Set
End Property
MyClassName End Class
REM I don't really know if End MyClassName should be at the end.
REM book has End Class at the end.
REM But the programs still manages to run I think.
End Module
Reply With Quote

Sponsored Links