Transparent Windows.Forms.Control

Posted on 2006-05-11
Last Modified: 2010-04-16
I've been trying to make a circular shape control, but because the control is rectangle, it has some area I intend to keep empty painted over.

What I need is to be able to set that area as transparent, and even more importantly, make sure mouse clicks on a transparent area aren't caught by the control. (They should be caught by the underlyings underlying controls).

For forms, I'd simply set the transparent area to a color, and set the transparent color of the form to that specific color. However I didn't find the prorperty in controls.

Thanks for any help.
Question by:PHILIPS_MED
    LVL 19

    Accepted Solution

    Please read the following article to see how to create shaped Windows Forms and Controls in Visual Studio .NET:
    See specifically the section "It's Not Hip To Be Square"

    As an example see the following article that describe how to write an irregular shaped piano key control

    LVL 19

    Expert Comment


    Author Comment

    Good job

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Join & Write a Comment

    This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
    Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
    This video discusses moving either the default database or any database to a new volume.
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now