* "Stephan Unger" <as**@asdf.ch> scripsit:
i want to open a new Form in my VB.NET Application. How can i do this when i
want to add a paramter?
i know the code:
frmxxx.showdialog() or frmxxx.show
but how can i add paramter for this new form?
\\\
Public Class ...
Inherits ...
Private m_UserName As String
Public Property UserName() As String
Get
Return m_UserName
End Get
Set(ByVal Value As String)
m_UserName = Value
End Set
End Property
' Change Me.UserName here.
End Class
///
Usage:
\\\
Dim f As New Form1()
f.UserName = "Max Mustermann"
f.ShowDialog()
MsgBox(f.UserName)
///
--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>