Image Shapes

C

Craig Whatley

I would like to place an image of a round button on a Windows Form. The
Windows form will also have a background image. The only way I know how to
do that is to create a PictureBox and put the image in it. The picture box,
however, is square/rectangular. I would like the unused edges around the
image within the picture box to be transparent so that it displays the
background image of the form. Is there a way to do this?

It looks as though every graphic with the .NET CF must be rectangular in
shape if you are overlaying that graphic onto a control (like a form) that
is displaying an image. Is this correct?

Thanks,
Craig Whatley
 
C

Chris Tacke, eMVP

Take a look at what I did for the RoundGauge in the Smart Device Framework.
I'm drawing *lots* of things there - circles, tick marks, a sweeping needle,
text, etc. It should give you some ideas on how to achieve it.

-Chris
 
A

Alex Feinman [MVP]

I'll be posting an article tomorrow on OpenNETCF.org that describes how to
force a window to occupy a specified shape (changing the actual window
bounds).
 
C

Craig Whatley

Alex,
Once you post the article, can you post the URL to the article here?
Thanks!

Craig
 

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

Similar Threads


Top