473,385 Members | 1,720 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.

MDI Application

Iam using VS.net2005 iwas using 2003
ihave some problem that occuer with me

icreate 2 forms
one is the container of the mdi ,and the onother have textbox in it to
dispaly the files,

i create top-level menue contain --> (File ,edite, windows,.....)

first idont' find property MDILIST to put it to Top-level menue windows ?

second iwant in this menue to tell me the active MDI child to track them and
explain to me how this work?

third how to change any property in the active MDIChild like font or color
of the text in the text box without changing the another child?

thanx all;


--
Islam Khalil,
Jun 27 '06 #1
7 2108
Have a look at the MdiWindowListItem property of the MenuStrip. It should
help you out a little.
Steve

"SemSem" <Se****@discussions.microsoft.com> wrote in message
news:85**********************************@microsof t.com...
Iam using VS.net2005 iwas using 2003
ihave some problem that occuer with me

icreate 2 forms
one is the container of the mdi ,and the onother have textbox in it to
dispaly the files,

i create top-level menue contain --> (File ,edite, windows,.....)

first idont' find property MDILIST to put it to Top-level menue windows ?

second iwant in this menue to tell me the active MDI child to track them
and
explain to me how this work?

third how to change any property in the active MDIChild like font or color
of the text in the text box without changing the another child?

thanx all;


--
Islam Khalil,

Jun 27 '06 #2
and how let the toplevel menu tel me which window is active by giving a sign
besdie the window name?
Jun 27 '06 #3
idint also get the answer of the another questions?
some one tell me if what i say is clear
Jun 27 '06 #4
Did you try it? If you had, you would see that the framework generates the
support for the window list and handles putting a tick next to the active
window.

"SemSem" <Se****@discussions.microsoft.com> wrote in message
news:9E**********************************@microsof t.com...
and how let the toplevel menu tel me which window is active by giving a
sign
besdie the window name?

Jun 28 '06 #5
When you create a child form, you presumably create an instance of the
"form" so have a reference to the forms object. You should create properties
in your form that can be set from the MDI parent that change the font (or
other) properties. For example...

frmView fView = new frmView(); // Create an instance
of my child form
fView.MdiParent = this; // Set it's
MDI parent
fView.ModelFileName = fOpen.FullName; // Set some attributes on my
form
fView.Show(); // Show
my form

The attributes can be whatever you want them to be, including fonts and
colours.

Alternatively, have menu options on the child form (these get merged with
the MDI parent at run time) for changing the properties of the specific
instance of the child form.
"SemSem" <Se****@discussions.microsoft.com> wrote in message
news:8A**********************************@microsof t.com...
idint also get the answer of the another questions?
some one tell me if what i say is clear

Jun 28 '06 #6
Thank u u relly help me with this .
you tell me waht iwant exactly .
but another question that i want to change the property of the active
mdichild.
not the general instance .so we this option can be very usufull.

Jul 1 '06 #7
The mdi parent form has an event that you can capture "mdiChildActivate"
that you can handle to keep track of which child form is currently active
(it's also called when the child is closed).

Also, the mdiParent has a property called ActiveMdiChild which gives you a
reference to the active mdi child form.

Once you have a reference to the active child, you can call methods against
that form or set properties to achieve what you need. Anything you do to an
individual instance will only apply to that instance, so no other mdi child
will change.

If you did eventually want to change all forms, the mdiParent has a
collection called mdiChildren that allows you to access every child form.

Steve

"SemSem" <Se****@discussions.microsoft.com> wrote in message
news:08**********************************@microsof t.com...
Thank u u relly help me with this .
you tell me waht iwant exactly .
but another question that i want to change the property of the active
mdichild.
not the general instance .so we this option can be very usufull.

Jul 1 '06 #8

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

Similar topics

9
by: J. Baute | last post by:
I'm caching data in the Application object to speed up certain pages on a website The main reason is that the retrieval of this data takes quite a while (a few seconds) and fetching the same data...
3
by: Amit Dedhia | last post by:
Hi I am developing a Dot net application (involving image processing) on a uni processor. It works well on my machine. I then take all my code on a multi processor, build and run the application...
6
by: orekin | last post by:
Hi There I have been trying to come to grips with Application.Run(), Application.Exit() and the Message Pump and I would really appreciate some feedback on the following questions .. There are...
20
by: Peter Oliphant | last post by:
How does one launch multiple forms in an application? Using Photoshop as an example, this application seems to be composed of many 'disjoint' forms. Yet, they all seem somewhat 'active' in...
4
by: Dave | last post by:
I have a global.asax file with Application_Start defined and create some static data there and in another module used in the asp.net application and I realize that static data is shared amongst...
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:
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
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.