I am developing an application in C# and there is a requirement of the form of the main window in rounded rectangle or some times triangle type or round shape. so, how can I achieve this kind of features in C# 2008
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
- How to know full paths to DLL's from .csproj f
I think this is what you're looking for:
http://www.codersource.net/csharp_custom_window_forms.aspx
Also you can google for it, there are plenty examples.
Assuming this is on Windows Forms you can check these two articles on MSDN: http://msdn.microsoft.com/en-us/library/aa289517(VS.71).aspx
http://msdn.microsoft.com/en-us/library/aa984331(VS.71).aspx
You basically have to do the following:
Look at the Region property of your form. You can create a new Region, set its shape using it's various Add... methods and then assign the region to your form's region property.