When my MDI child loads, its maximized. This makes it display an icon on its top left conner in the parent's toolbar. Is there any way i can do away with this default, MS icon!!
Printable View
When my MDI child loads, its maximized. This makes it display an icon on its top left conner in the parent's toolbar. Is there any way i can do away with this default, MS icon!!
Hi,Quote:
Originally Posted by maps
If this is VBNet 2003 then you can change this Icon in the properties of your MDI Child form and change it in the one you want to.
I think it could be the same for 2005
Wkr,
sparrow1
I dont want any icon on it.
Just select the icon property for the form, and delete it (select the (Icon) text).
Who Knows What I Am Taking About!!!!
That wasnt a very good response, try again and this time add some words to your post that mean something.
It's not possible using .NET properties or methods as far as I'm aware. That icon is there so that you can click it to get the system menu for the child form. Even if you set the ControlBox property to False, which removes the system menu, Close button, etc. when the form is in a normal state, that icon is still visible and you can still click it to display the system menu. If it's possible to get rid of it it would require using the Windows API.
Also, shouting at those whom you want to help you is not productive. Even if the advice you get doesn't help you are no worse off than you were before. Noone here has any responsibility to be right, or help you at all for that matter.
OMG...Sorry, no hard feelings were attached. I had not seen your post by the way, i just put the cursor in the quick reply box.....and that was it.Quote:
Originally Posted by Grimfort
lol, none taken.
I'm having a similar problem (if not the same)
when my MDI child form gets loaded maximized it loads the default MS icon, but if I restore to normal size then get back to maximzed it loads the icon well...
odd bug... :wave:
I have same problem as Ruku, has anyone found a solution so the proper child icon shows in the toolbar when the child is first loaded??
It just so happens that I published a work around for this little quirk on my website on Friday in this article: MDI PDF File Viewer with Tabbed Header. While it isn't the main theme of the demo app, it does contain the workaround. The basic jist of it is that you have to (a) set the icon in the New method of the child form, then (b) Make all the MDI child forms normal (not maximized or minimized) then (c) Maximize the new child form. There is some flicker involved with this so you have to decide if having the icon is work that trouble. If you run the demo app you can see how this works/looks.Quote:
Originally Posted by xoggoth
Cheers for that! As it happens I did have a fiddle with setting one state then the other and got intp some sort of bizarre flashing loop even though the debugger insisted I was only going through the code once. I will have to have a look at your work around once I sort my current problem with a cursor.
Hello all,
Same problem here, maybe it is fixed in visual studio 2010? That icon is really annoying. If child form is not maximized then this icon is gone, but maximized it is in front of menu.
Thanks in advance.