is there a way to pass arguments in the showDialog function to a user created form?
also, can that form return a value somehow???
Printable View
is there a way to pass arguments in the showDialog function to a user created form?
also, can that form return a value somehow???
do you mean something like this????
VB Code:
'This goes on your dialog form Public Overloads Function ShowDialog(ByVal strFormTitle As String) As String Me.Text = strFormTitle MyBase.ShowDialog() Return TextBox1.Text End Function 'Place a Textbox named "TextBox1" on the dialog or use an existing control
VB Code:
'calling the form Dim as New Form2 ' form2 in my case Msgbox(x.ShowDialog("MyForm"))