a) In the Form you wish to pass parms to, set up a property/varible for each property
VB Code:
Private mstrParam As String Property Param1() As String Get Param1 = mstrParam End Get Set(ByVal Value As String) mstrParam = Value End Set End Property
b) then you can pass the paramater using the new property,
for example
VB Code:
Dim objForm As New frmTwo() With objForm .Param1 = "Passing a string" .Show() End With objForm = Nothing
Well - thats how I would have done it in vb6 anyway...




Reply With Quote