Communication Between Forms

  • Thread starter Thread starter Saber S
  • Start date Start date
S

Saber S

I've two forms and want do something like it:

If Form1.MenuItemPersian.Checked THEN
Form2.LabelCaption.Text="Something..."
' ...
End If
 
Saber S parstech.net> said:
I've two forms and want do something like it:

If Form1.MenuItemPersian.Checked THEN
Form2.LabelCaption.Text="Something..."
' ...
End If

If you want to access an object you need a reference. If you don't have one,
it must be made available. This can be done by passing it as an procedure
argument.
 
Sorry, I'm newbie.
For example I've a procedure in Form1 and want to pass "A checkbox is
checked or not" to
another Form.
If it was in same form it was easy, but how can I send an argument to
another form?
 
Saber S parstech.net> said:
Sorry, I'm newbie.
For example I've a procedure in Form1 and want to pass "A checkbox
is checked or not" to
another Form.
If it was in same form it was easy, but how can I send an argument
to another form?

I'm (still) about to write some lines about this question in my native
language. Maybe I'll translate it to English. I'll tell you when I'm ready.
As this question has been asked and answered about 1001 times, I currently
only want to make a short answer: You can pass it as a procedure argument
(look it up in the VB docs) or as a property (also in the VB docs).
 
Back
Top