Very new and .....
I have worked my way through the vs 2008 ide using an excellent book by Jim Chesire and now want to learn more vb coding. My opportunity seems to be taking a massive amount of disjointed learning material (most of that written in C#) and piecing it together. With that in mind I have used the MSDN vb site to build a simple form, the challenge for me seems to be taking that simple form and getting them to run in an aspx page built in vwd (I am also interested in doing the same with console apps). This is all cuurently for learning purposes but at the same time it's really bugging me that I can't figure it out.
It works perfectly when built and run within the VB 2008 interface.
The location of the example is here:
http://msdn.microsoft.com/en-us/library/xtka85tz.aspxThe code is below:
Public Class UserNameInfo
End Class
private userNameValue As String
Public Property UserName() As String
Get
' Gets the property value.
Return userNameValue
End Get
Set(ByVal Value As String)
' Sets the property value.
userNameValue = Value
End Set
End Property
Public Sub Capitalize()
' Capitalize the value of the property.
userNameValue = UCase(userNameValue)
End Sub
Public Sub New(ByVal UserName As String)
' Set the property value.
Me.UserName = UserName
End Sub
create a button to test the class
' Create an instance of the class.
Dim user As New UserNameInfo("Moore, Bobby")
' Capitalize the value of the property.
user.Capitalize()
' Display the value of the property.
MsgBox("The original UserName is: " & user.UserName)
' Change the value of the property.
user.UserName = "Worden, Joe"
' Redisplay the value of the property.
MsgBox("The new UserName is: " & user.UserName)
Thanks for all the help (ahead of time)