Hello,
In the above program eventhough i have inherited the window form i am not able to retreive the values of the textbox etc.,.
Could you please tell me where have i gone wrong.
Visual Basic:
Public Class salesrepadd
Inherits System.Windows.Forms.Form
Private Sub Add()
address.text = "Trial"
Dim ins As New InsertSalesRep()
ins.insert()
End Sub
End Class
Public Class InsertSalesRep
Inherits salesrepadd
Public Sub insert()
MsgBox(address.Text) ------> Displays blank
End Sub
End Class
In the above program eventhough i have inherited the window form i am not able to retreive the values of the textbox etc.,.
Could you please tell me where have i gone wrong.