Passing items from form a to b
Hey all hows life going ????
I still having trouble in passing items basically an ID from one form to another using a MDI control feature as below
---------------------------------------------------------------------------
Used to call the mdi form
---------------------------------------------------------------------------
Dim parent As MainApplication = CType(Me.MdiParent, MainApplication)
parent.ShowSingleInstance(GetType(AppointmentDetails), intRecordId)
---------------------------------------------------------------------------
---------------------------------------------------------------------------
Deals with the mdi form
---------------------------------------------------------------------------
For Each child As Form In Me.MdiChildren
If child.GetType Is childType Then
'already loaded so bring to foreground
child.Activate()
Return
End If
Next
'not loaded yet so create
Dim frm As Form = Activator.CreateInstance((childType), PassedValue)
frm.MdiParent = Me
frm.Show()
---------------------------------------------------------------------------
I need to pass an ID to via this to the opening page can anyone shed anylight on the topic Code examples would be really good
Thanks All