Form with custom shape

  • Thread starter Thread starter Giox
  • Start date Start date
G

Giox

Hello everybody, I have a little problm using custom shape windows
form. I 'm using the idea illustrated in MSDN (use of TransparenceKey)
and all works well but as spoecified on MSDN this works well only if
you set the colors of monitor to 16 or 24 bit. I have to use this
application in different computer, (in a demo to some student) so I
want to be able to change the color depth programmatically. Is there
some trip to do that? the class Screen doesn't contain things that I
need (she get values but don't set them).
Can you help me?
 
Hello,

I am not sure the managed way exists. You can however try P/Invoking to the
ChangeDisplaySettings API function.
Or, you can use regions instead of color keys to achieve the custom shape of
your form.
 
Interesting, but I'm a bit worried about the mark took by this
article, I
hope it works well....
Thanks Gio
 
Back
Top