Ticket Q399941
Visible to All Users

Non-Square Icon on Windows Form?

created 13 years ago

Is it possible to display an icon in the top left corner of a Windows Form that is a different shape than the standard 16X16 pixel icon?
It appears that Skype has an icon that is much wider than standard: (See Attached Cropped Screen Shot)
Is it possible in a Windows From App… I could not figure out how to use the custom skin to create this?
Is it even possible using a custom skin?
Thanks in advance.

Show previous comments (6)
DevExpress Support Team 13 years ago

    Hi David,
    Thank you for your response. I have researched your sample. To implement the previously reviewed approach in the RibbonForm instance, your custom MyFormPainter class needs to be inherited from the RibbonFormPainter class:

    C#
    public class MyFormPainter : RibbonFormPainter { .......... public MyFormPainter(RibbonForm owner, ISkinProvider provider) : base(owner, provider) { ............ } }

    Please try this approach and let me know of your results. I am looking forward to your response.
    Thanks,
    Oleg

      Hi.
      Perfect It works…
      I added some code and providing it just in case for reference later or someone else needs it…
      Thanks.

      DevExpress Support Team 13 years ago

        You are welcome, David!
        I am happy to hear that my assistance was helpful to you. Thank you for posting your code in this thread.
        Should you have any questions regarding our products, do not hesitate to contact us.
        Thanks,
        Oleg

        Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

        Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.