application with nonstardard shape

  • Thread starter Thread starter BK
  • Start date Start date
B

BK

Hi all!

How can I made an application that is not standard window-based
application, but instead of this it has a kind of "free form" shape?
For example, I have a transparent GIF image with circle inside and
transparent color outside the circle. And I would like that my
application looks like this circle and remains showing desktop
background around the circle.
How can I do that?

Regards,
Branko
 
Well, I've never done this and I'm taking a guess, but I think the first
step would be to define the region that your window occupies and set the
form's region to that region. After that, you have to handle the non-client
area painting. I'm not really sure what the best way to do it in .NET is, so
maybe someone else can help out there. I know it can be done by working with
the message handler, but there may be events that you can handle to do this
as well. A quick scan of the events didn't show anything that caught my eye,
though.

And then, of course, you'll have to paint the contents of the window.

That should do it, though.

Pete
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top