Hi,
What is the easiest way to do this? Is it possible with managed code?
Thanks for your time.
Hi,
What is the easiest way to do this? Is it possible with managed code?
Thanks for your time.
this.BackgroundImage = //Image
this.FormBorderStyle = FormBorderStyle.None;
this.Width = this.BackgroundImage.Width;
this.Height = this.BackgroundImage.Height;
this.TransparencyKey = Color.FromArgb(0, 255, 0); //Contrast Color
From http://vckicks.110mb.com/custom_shape_form_transperancy.html
This allows you to create a form based on an image, and use transparency index to make it seem as though the form is not rectangular.
@Geoff shows the right way in winforms.
But If you are planning to use WPF instead of Winforms then WPF(.NET3.0+) gives very flexible ways to create anyshape custom windows. Check out this article also http://www.codeproject.com/KB/WPF/wpfpopup.aspx
Step-by-step instructions with code
Also shows how to implement basic Windows functionality once you have lost the titlebar.