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).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Question on MDIchild forms 6
How to use data on two forms 5
Open a new form and close the previous form. 2
Handling Forms 2
Shared Sub Main 10
Adding Form2 3
MDI child windows' position 1
Navigate between forms 1

Back
Top