Property Let: Assign to variable
Property Get: Get variable/Object
Property Set: Assign to object
Wih them you pass or get data to/from Forms, it's better than just using Public variables/Objects inside them. So inside each Chat Form you can have:
And show each Form with:VB Code:
Private FrmParent As Form Public Property Set ParentForm(pForm As Form) Set FrmParent = pForm End Property
Now Frm can use its Parent to Get or Send infoVB Code:
Dim Frm as Form1 Set Frm = New Form1 Load Frm 'Assing values to Properties or Public variables in Frm before show 'you can send this Form (Parent) as a Property Set Set Frm.ParentForm = Me 'Now Frm knows who is its Parent Frm.Show
VB Code:
Me.BackColor = FormParent.BackColor 'Get something FormParent.Caption = "Hey Im " & Me.Name & " Sending This" 'Send Something




Reply With Quote