Call WinForm with parameter?

  • Thread starter Thread starter dw
  • Start date Start date
D

dw

Hello..is it possible to call a winform (show or
showdialog) and pass the form a parameter? Could be a
single value (like an integer)?

thanks for any help or links.
,dw
 
Hello,

dw said:
Hello..is it possible to call a winform (show or
showdialog) and pass the form a parameter? Could be a
single value (like an integer)?

\\\
Public Overloads Function ShowDialog(ByVal i As Integer) As DialogResult
Me.Text = i.ToString()
Return Me.ShowDialog()
End Function
///

Regards,
Herfried K. Wagner
 
is there a reason you are specifically sending this to
either a show or showdialog method? why not pass the
parameter to the form in the form's constructor
(overloading it of course)?
 
Back
Top