473,385 Members | 1,838 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,385 software developers and data experts.

Communication between forms

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 --> I call

it childForm1
it contains Button1
The 2nd:
child form is called by parentForm --> I call

it childForm2
it contains Button2

----------

I want the parentForm to do something, example get

data form childForm1,
when childForm1.Button1 is clicked --> how does

parentForm know
childForm1.Button1 is clicked?

Similarly to childForm2 and childForm1,
how does childForm1 know childForm2.Button2 is

clicked?

------------------------
Thank so much

Nov 16 '05 #1
4 7167
Read MSDN for delegates.
Nov 16 '05 #2
This topic is covered in most of the intro-level books on C# windows form
programming. First off, I'd recommend that you start with a good book.

You may also benefit from this article.
http://www.eggheadcafe.com/articles/20040229.asp

I hope this helps.

--- Nick

"Dean L. Howen" <jm*****@hotpop.com> wrote in message
news:eM**************@TK2MSFTNGP09.phx.gbl...
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 --> I call

it childForm1
it contains Button1
The 2nd:
child form is called by parentForm --> I call

it childForm2
it contains Button2

----------

I want the parentForm to do something, example get

data form childForm1,
when childForm1.Button1 is clicked --> how does

parentForm know
childForm1.Button1 is clicked?

Similarly to childForm2 and childForm1,
how does childForm1 know childForm2.Button2 is

clicked?

------------------------
Thank so much

Nov 16 '05 #3
meh
I would agree to a point. It is covered in some form or another in most
books. I have read most of them but I feel that none of them have done a
good job on this topic. The link is the best reference I've seen so far!

meh

"Nick Malik" <ni*******@hotmail.nospam.com> wrote in message
news:DRIyc.89356$Ly.46020@attbi_s01...
This topic is covered in most of the intro-level books on C# windows form
programming. First off, I'd recommend that you start with a good book.

You may also benefit from this article.
http://www.eggheadcafe.com/articles/20040229.asp

I hope this helps.

--- Nick

"Dean L. Howen" <jm*****@hotpop.com> wrote in message
news:eM**************@TK2MSFTNGP09.phx.gbl...
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 --> I call

it childForm1
it contains Button1
The 2nd:
child form is called by parentForm --> I call

it childForm2
it contains Button2

----------

I want the parentForm to do something, example get

data form childForm1,
when childForm1.Button1 is clicked --> how does

parentForm know
childForm1.Button1 is clicked?

Similarly to childForm2 and childForm1,
how does childForm1 know childForm2.Button2 is

clicked?

------------------------
Thank so much


Nov 16 '05 #4
It's really useful. Thank so much

"Nick Malik" <ni*******@hotmail.nospam.com> wrote in message
news:DRIyc.89356$Ly.46020@attbi_s01...
This topic is covered in most of the intro-level books on C# windows form
programming. First off, I'd recommend that you start with a good book.

You may also benefit from this article.
http://www.eggheadcafe.com/articles/20040229.asp

I hope this helps.

--- Nick

"Dean L. Howen" <jm*****@hotpop.com> wrote in message
news:eM**************@TK2MSFTNGP09.phx.gbl...
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 --> I call

it childForm1
it contains Button1
The 2nd:
child form is called by parentForm --> I call

it childForm2
it contains Button2

----------

I want the parentForm to do something, example get

data form childForm1,
when childForm1.Button1 is clicked --> how does

parentForm know
childForm1.Button1 is clicked?

Similarly to childForm2 and childForm1,
how does childForm1 know childForm2.Button2 is

clicked?

------------------------
Thank so much


Nov 16 '05 #5

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....
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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.