Namespace ss
Class s
Dim Name As String
Dim age As Integer
Sub New()
Name = "ayoub"
age = 23
End Sub
Public Property The_Name() As String
Get
Return Name
End Get
Set(ByVal value As String)
Name = value
End Set
End Property
End Class
End Namespace
Imports WindowsApplication1.ss
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim s As New s
MsgBox(s.The_Name)
End Sub
End Class