473,326 Members | 2,196 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,326 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 2106
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: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
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...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.