473,652 Members | 3,045 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

MDI Form mdiList for experts

I have a MDI form with a MdiList in a MenuItem
And also 3 different child types, one child is like a background with a
picturebox in it.
So this must be always as background and never hide the others childs.
But when I click in the MdiList on the "backgroundchil d" the
"backgroundchil d hides the others child.
Can I remove this child from the MdiList or is there a way that this child
don't hide the others when clicking on it in the MdiList?
Thanks for any response
May 23 '06 #1
1 2110
Hi Andreas,

One thing you could do is implement your own MDI list in the menu. This
would require you to add / remove menu items that link to the child forms
when created / destroyed.

For example,

Dim newmenitem As New ToolStripMenuIt em("new window!")
newmenitem.Tag = <child form object>
AddHandler newmenitem.Clic k, AddressOf newmenitem_Clic k
<toolstripmenui tem to store MDI list>.DropDownI tems.Add(newmen item)

Private Sub newmenitem_Clic k(ByVal sender As System.Object, ByVal e As
System.EventArg s)
Dim menuitem As ToolStripMenuIt em = CType(sender, ToolStripMenuIt em)
menuitem.Tag = <associated child form object>
End Sub

In the click event you could then hide all child forms except for your
background one, and show the associated child form object. In the "enter"
event of your background form you could call Me.SendToBack() in order to
force it to the back each time.

Remember to keep a hashtable with the child forms as keys and the menu
items as the values, this way you can easily remove the menu items when the
form is created...

Hashtable.Item( Me) << Returns menu item for current child form.

I hope this helps.

Nick.

"andreas" <an*****@pandor a.be> wrote in message
news:fU******** *************** @phobos.telenet-ops.be...
I have a MDI form with a MdiList in a MenuItem
And also 3 different child types, one child is like a background with a
picturebox in it.
So this must be always as background and never hide the others childs.
But when I click in the MdiList on the "backgroundchil d" the
"backgroundchil d hides the others child.
Can I remove this child from the MdiList or is there a way that this child
don't hide the others when clicking on it in the MdiList?
Thanks for any response

May 23 '06 #2

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

Similar topics

1
2249
by: Mayolo Juarez via DotNetMonster.com | last post by:
Hi, I have a problem, when i use a context menu in a MDIForm and activate the property "MDIList= True", the context menu don't show me the current child windows, please help me, i use VS2003. -- Message posted via http://www.dotnetmonster.com
1
1694
by: Mayolo Juarez via DotNetMonster.com | last post by:
yes ina a contex menu i activate de the property mdilist and i can´t see the mdichild listed in the contexmenu, only dont show me the mdi child i use net framework 1.1 and vs2003, sll its correct prove your selfe and try to do that i try and you can't see the mdichilds -- Message posted via DotNetMonster.com http://www.dotnetmonster.com/Uwe/Forums.aspx/dotnet-csharp/200510/1
2
10455
by: Billy | last post by:
Hello! I have a main form as MDIContainer in VB.NET 2002 App. Form has menu which call several forms. I call forms that way: -- Dim f As New frmNameX() LoadForm(f) -- Procedure LoadForm check if form is already loaded.
0
1075
by: Peter Proost | last post by:
Hi group, I was wondering if anyone has ever done this before, I've got a working ownerdrawn menu the only thing I can't get to work is to ownerdraw the items the get automaticaly created in a mdilist. I thought if I'd handle the click event of the menuItem with the mdilist property and then iterate true it's collection of MenuItems and dynamicaly add the handlers used for my drawitem and measueritem it "could" work but it doesn't...
0
1047
by: pa.singer | last post by:
I have an MDIList menu item that I want to enumerate at run-time and possibly change the text shown for some of the MDI children included in that list. When I enumerate the collection for that menu item, none of the open MDI child windows show in the list although they are clearly there in the actual drop-down of the menu item. Does anyone know how I can enumerate the menu item that contains the MDIList at run-time and change the text...
4
2265
by: pa.singer | last post by:
I have an MDIList menu item that I want to enumerate at run-time and possibly change the text shown for some of the MDI children included in that list. When I enumerate the collection for that menu item, none of the open MDI child windows show in the list although they are clearly there in the actual drop-down of the menu item. Does anyone know how I can enumerate the menu item that contains the MDIList at run-time and change the text...
3
1922
by: andreas | last post by:
I have many childs forms in a parent form. And I use mdiList in menu/windows When I minimize all these childs with a menu command I want that the selected child in the mdiLIst should open but it isn't. The child remains minimized and has just a focus. I can open the childwindow on other ways but I want to do this with the MDIList Can I do that? Thanks for any response
3
4430
by: Ricardo Maciel | last post by:
The How to page: http://msdn2.microsoft.com/en-us/library/7aw8zc76(VS.80).aspx walks through the creation of MDI child forms. It includes instructions to set the property MdiList to maintain a list of open MDI child windows. However, I can't find the MdiList property in the properties panel.
1
2786
by: Chris Peeters | last post by:
hi, in VS 2003 one used the MdiList-property of a menuitem to display the Active Mdi-child windows in the menuitem. But I can't find it nowhere in VS2005. what is the equivalent for that in VS2005 ? thank you
0
8279
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8811
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8467
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7302
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6160
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5619
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4291
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2703
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1914
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.