locked
Changing MDI Child Windows Icons? RRS feed

  • Question

  • Changing MDI Child Windows  Icons?
    • Moved by Don Tan Friday, July 31, 2009 4:01 PM This is an off topic thread from "Forums Ony" bug reporting Forum. Moving to Off Topic Forum (From:Forums Issues (not product support))
    Friday, July 31, 2009 3:36 PM

Answers

  • i think ,if you want to get any effect related to MDI Child  , you have to do like the following.
    for me it worked.
    all that you will need to do is, create new property with the same name and add 'new' kew word to it.

    like,

    public new Icon Icon
            {
                get
                {
                    return base.Icon;
                }
                set
                {
                    if (this.DesignMode)
                        DesignerView.Icon= value;
                    base.Icon= value;
                }
            }
    • Marked as answer by ManasMSDN Friday, July 31, 2009 4:11 PM
    Friday, July 31, 2009 4:10 PM

All replies

  • Duplicate post:

    http://social.msdn.microsoft.com/Forums/en-US/netfxbcl/thread/c844be63-6f55-4ef3-8fc2-400ac52d7ad6


    Please don't duplicate your posts.  It's only been three minutes since your last post.  Give it time for others to answer your query.
    David Morton - http://blog.davemorton.net/ - @davidmmorton - ForumsBrowser, a WPF MSDN Forums Client
    Friday, July 31, 2009 3:38 PM
  • Hi David,
    please help me with this,

    when i try to set the icon for MDI Child , Icon is changing in property but not in Tittle bar.
    what i need to do to get the Icon on Tittle Bar .
    please help me!
    Friday, July 31, 2009 3:54 PM
  • Thanks .

               I solved my problem myself.
    Friday, July 31, 2009 4:06 PM
  • i think ,if you want to get any effect related to MDI Child  , you have to do like the following.
    for me it worked.
    all that you will need to do is, create new property with the same name and add 'new' kew word to it.

    like,

    public new Icon Icon
            {
                get
                {
                    return base.Icon;
                }
                set
                {
                    if (this.DesignMode)
                        DesignerView.Icon= value;
                    base.Icon= value;
                }
            }
    • Marked as answer by ManasMSDN Friday, July 31, 2009 4:11 PM
    Friday, July 31, 2009 4:10 PM