I use the code
Dim Selvk As New Selvkost2 Selvk.PassedText = TextBox29.Text Selvk.Show()
in mainform and the code
Private _passedText As String Public Property [PassedText]() As String Get Return _passedText End Get Set(ByVal Value As String) _passedText = Value End Set End Property
in my second form and the text passes. but I need to pass values from 20 textboxes.
do I have to copy the code in my second form 20 times an declare passedtext2 and so on or is there an easier way to do this?