473,387 Members | 3,801 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Communication Between Forms

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

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


Nov 20 '05 #1
3 1247
"Saber S parstech.net>" <soleimani<NOSPAM@> schrieb
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.
--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #2
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?

"Armin Zingler" <az*******@freenet.de> wrote in message
news:%2***************@TK2MSFTNGP09.phx.gbl...
"Saber S parstech.net>" <soleimani<NOSPAM@> schrieb
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.
--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #3
"Saber S parstech.net>" <soleimani<NOSPAM@> schrieb
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).
--
Armin

Nov 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Tim Reynolds | last post by:
I support a .Net application running on a SERVER accessing MF Db2 data. Occasionally, we have some type of connection problem that we have been unable to debug up to this point. We typically...
3
by: rammohan | last post by:
hello my task is to show only one form at a time.if click some button in one form the other must be displayed and viceversa. i try it but i got debugger exception. can u give me the reason why...
3
by: pnp | last post by:
Hi all, I want to develop an app that during it's installation it activates itself by making a request to a page online (aspx), than runs a script and provides an activation string for the app....
4
by: Dean L. Howen | last post by:
Please show me advise. My problem is: how to communication between forms? I have 3 forms: The 1st: parent form: is MDI --> I call parentForm The 2nd: child form is called by parentForm...
3
by: Maheshkumar.R | last post by:
Hi groups, How i can command over the MDI CHIlD forms created dynamically at runtime from PARENT. Let say, i have generated 5 mdichild forms, but i want to work with child form1 from MDI...
2
by: Jim Shank | last post by:
I am really trying to find the best OOP way of doing this. I have a parent MDI form with multiple children and I am trying to communicate variables between them. I have been able to successfully...
21
by: dast | last post by:
Hi, I'm having trouble letting my background thread tell my main thread what to do. I'm trying to tell my main thread to open a form, but when my background thread ends, the form that I...
5
by: Mo | last post by:
Hi, I have an application where I read a serial port data from a barcode and set the labels on a form. I also have a textbox and button where you can enter the data and here is the problem. if I...
0
by: zb | last post by:
Here is the page architecture: Page loads multiple user controls (including nested user controls) dynamically based on parameters provided into place holders. Note: The page only has the logic to...
6
by: ecir.hana | last post by:
Hi, let's say I have two scripts: one does some computations and the other one is a graphical front end for launching the first one. And both run in separate processes (front end runs and that it...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.