473,505 Members | 13,823 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 "backgroundchild" the
"backgroundchild 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 2095
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 ToolStripMenuItem("new window!")
newmenitem.Tag = <child form object>
AddHandler newmenitem.Click, AddressOf newmenitem_Click
<toolstripmenuitem to store MDI list>.DropDownItems.Add(newmenitem)

Private Sub newmenitem_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs)
Dim menuitem As ToolStripMenuItem = CType(sender, ToolStripMenuItem)
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*****@pandora.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 "backgroundchild" the
"backgroundchild 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
2237
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. ...
1
1688
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...
2
10451
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...
0
1068
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...
0
1037
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...
4
2258
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...
3
1903
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...
3
4422
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...
1
2774
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...
0
7098
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...
0
7298
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,...
1
7017
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...
0
7471
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5026
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...
0
4698
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...
0
3187
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1526
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 ...
1
754
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.