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

IPC between two mdi Children.

JB
All,
Quick question here, Is it possible to exchange information between two mdi
Children? The situation is this:
I have one window which is a mdi child, and spawns another mdi child,
which is used to browse and select a record from a datagrid, and exit.
Obviously Show Dialog is the easy answer, and treat the select window as
modal. The issue is that I want to maintain the MDI situation. This
selection should not be a modal situation.

Any ideas and suggestions?

Jamison
Nov 16 '05 #1
2 1076
Jamison,

When creating the new form, pass the reference to the form that created
it through the constructor, a method call, or a property, and then the child
form can reference the parent. You wouldn't need to use ShowDialog in this
case.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com
"JB" <ja*******@GOEATSPAM.yahoo.com> wrote in message
news:ZC**************@fe1.columbus.rr.com...
All,
Quick question here, Is it possible to exchange information between two
mdi Children? The situation is this:
I have one window which is a mdi child, and spawns another mdi child,
which is used to browse and select a record from a datagrid, and exit.
Obviously Show Dialog is the easy answer, and treat the select window as
modal. The issue is that I want to maintain the MDI situation. This
selection should not be a modal situation.

Any ideas and suggestions?

Jamison

Nov 16 '05 #2
JB
Just to make sure I am following,

public ListAccounts(){};

would become :
public ListAccounts( object parent){...}

or would it be:
public ListAccounts( ParentFormClass parent){...}

Thanks in Advance,
Jamison

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in
message news:%2****************@TK2MSFTNGP11.phx.gbl...
Jamison,

When creating the new form, pass the reference to the form that created
it through the constructor, a method call, or a property, and then the
child form can reference the parent. You wouldn't need to use ShowDialog
in this case.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com
"JB" <ja*******@GOEATSPAM.yahoo.com> wrote in message
news:ZC**************@fe1.columbus.rr.com...
All,
Quick question here, Is it possible to exchange information between two
mdi Children? The situation is this:
I have one window which is a mdi child, and spawns another mdi child,
which is used to browse and select a record from a datagrid, and exit.
Obviously Show Dialog is the easy answer, and treat the select window as
modal. The issue is that I want to maintain the MDI situation. This
selection should not be a modal situation.

Any ideas and suggestions?

Jamison


Nov 16 '05 #3

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

Similar topics

1
by: Todd Cary | last post by:
In my previous post, I stated that some JavaScript I inherited does not work in Firefox but does work in IE 6 . I have now isolated a line where it fails in Firefox; the line with the property of...
6
by: Luke Dalessandro | last post by:
I'm not sure if this is the correct forum for platform specific (Mozilla/Firefox) javascript problems, so just shout and point me to the correct newsgroup if I'm being bad. Here's the deal... ...
17
by: eric.nave | last post by:
What is the correct way to find all the form elements in a particular div? I'd like to be able to loop through them and disable them. For example: <form> <div id="div1"> <input type=text...
0
by: Walt Borders | last post by:
Hi, My problem: Merging two datasets deletes parent elements, preserves all children. I've created two dataSets. Each use the same schema, parent-child nested tables. The first dataSet is...
1
by: Marius Groenendijk | last post by:
Dear Group, I have a MDI with children which may be editing data. If a MDI child closes its Closing handler asks a question 'exit w/out saving?'. On closing the MDI its pops a question 'Exit...
2
by: Pucca | last post by:
I'm building a treeview and a list view. I need to know when I reached the end of the tree nodes, which means that node or directory entry has no children. Is there a property or method in...
7
by: Thierry Lam | last post by:
I have the follownig codes: <html> <head> <title>Simple doc</title> </head> <body> <script type="text/javascript"> function greet() {
3
by: Andrej Pavlovic | last post by:
Hi, Please look at the following HTML snippet: <body> some text <p>more text</p> even more text </body>
10
by: qwertycat | last post by:
I'm new to multi-process programming, should one avoid forking children from children of a parent? I'd like to spawn 10 children from the parent and each of those children spawns another 5...
9
MrPickle
by: MrPickle | last post by:
I have a structure like so: struct node { float x, y, z; std::vector<node> children; }; and I want to loop through all the node's children, then all the children's children then all the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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?
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...

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.