|
-
Jun 12th, 2006, 08:33 AM
#1
Thread Starter
Hyperactive Member
MDI Child Icon.
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!!
-
Jun 12th, 2006, 08:37 AM
#2
Re: MDI Child Icon.
 Originally Posted by maps
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,
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
-
Jun 12th, 2006, 09:00 AM
#3
Thread Starter
Hyperactive Member
Re: MDI Child Icon.
I dont want any icon on it.
-
Jun 12th, 2006, 09:54 AM
#4
Re: MDI Child Icon.
Just select the icon property for the form, and delete it (select the (Icon) text).
-
Jun 12th, 2006, 10:05 AM
#5
Thread Starter
Hyperactive Member
Re: MDI Child Icon.
Who Knows What I Am Taking About!!!!
-
Jun 12th, 2006, 10:20 AM
#6
Re: MDI Child Icon.
That wasnt a very good response, try again and this time add some words to your post that mean something.
-
Jun 12th, 2006, 10:26 AM
#7
Re: MDI Child Icon.
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.
-
Jun 12th, 2006, 10:37 AM
#8
Thread Starter
Hyperactive Member
Re: MDI Child Icon.
 Originally Posted by Grimfort
That wasnt a very good response, try again and this time add some words to your post that mean something.
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.
-
Jun 12th, 2006, 10:40 AM
#9
-
Nov 21st, 2006, 08:16 PM
#10
Fanatic Member
Re: MDI Child Icon.
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...
-
Jun 25th, 2007, 07:23 AM
#11
Addicted Member
Re: MDI Child Icon.
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??
-
Jun 25th, 2007, 08:37 AM
#12
Re: MDI Child Icon.
 Originally Posted by xoggoth
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.
-
Jun 25th, 2007, 09:49 AM
#13
Addicted Member
Re: MDI Child Icon.
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.
-
Jan 4th, 2011, 06:43 AM
#14
Junior Member
Re: MDI Child Icon.
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|