I'm new in Vb.net and try to learn how to program,but i stuck on this stages.
I create a new sub and declare it in 1 form
Public Class WebForm5
Public Sub info()
Dim x As String
Dim y As String
Dim z As String
x = txtbookn.Text
y = txtqua.Text.ToString
z = txtpri.Text.ToString
End Sub
End Class
and i try to pass it to another classes which in
Public Class Product
Public Sub New()
Me.Book_Name = (value for x)
Me.UnitPrice =(value for y)
Me.quantty=(value for z)
End Sub
End Class