Results 1 to 14 of 14

Thread: MDI Child Icon.

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    May 2006
    Posts
    426

    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!!

  2. #2
    PowerPoster sparrow1's Avatar
    Join Date
    May 2005
    Location
    Globetrotter
    Posts
    2,820

    Re: MDI Child Icon.

    Quote 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
    Wkr,
    sparrow1

    If I helped you, don't forget to Rate my post. Thank you

    I'm using Visual Studio.Net 2003 and
    2005
    How to learn VB.Net Create setup with VB 2005 Drawing for beginners VB.Net Tutorials GDI+ Tutorials
    Video's for beginners

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    May 2006
    Posts
    426

    Re: MDI Child Icon.

    I dont want any icon on it.

  4. #4
    PowerPoster
    Join Date
    Mar 2002
    Location
    UK
    Posts
    4,780

    Re: MDI Child Icon.

    Just select the icon property for the form, and delete it (select the (Icon) text).

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    May 2006
    Posts
    426

    Re: MDI Child Icon.

    Who Knows What I Am Taking About!!!!

  6. #6
    PowerPoster
    Join Date
    Mar 2002
    Location
    UK
    Posts
    4,780

    Re: MDI Child Icon.

    That wasnt a very good response, try again and this time add some words to your post that mean something.

  7. #7
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    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.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  8. #8

    Thread Starter
    Hyperactive Member
    Join Date
    May 2006
    Posts
    426

    Re: MDI Child Icon.

    Quote 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.

  9. #9
    PowerPoster
    Join Date
    Mar 2002
    Location
    UK
    Posts
    4,780

    Re: MDI Child Icon.

    lol, none taken.

  10. #10
    Fanatic Member Ruku's Avatar
    Join Date
    Jul 2002
    Location
    Canada
    Posts
    655

    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...

    Using VB.NET 2005/.NET 2.0, NetBeans IDE 5, Fujitsu Cobol85,
    Website: http://DreamForgery.com

  11. #11
    Addicted Member
    Join Date
    May 2007
    Posts
    165

    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??

  12. #12
    Fanatic Member bgmacaw's Avatar
    Join Date
    Mar 2007
    Location
    Atlanta, GA USA
    Posts
    524

    Re: MDI Child Icon.

    Quote 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.

  13. #13
    Addicted Member
    Join Date
    May 2007
    Posts
    165

    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.

  14. #14
    Junior Member
    Join Date
    Sep 2010
    Posts
    19

    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
  •  



Click Here to Expand Forum to Full Width