Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
How to create a shaped control in .NET
WhatsApp
Dinkar Chavhan
13y
9.3
k
0
0
25
Blog
Today we will see How to create 3D shaped control in windows c# .Net, This is very simple and easy so lets see step by step execution
Open VS studio 2008/2010 ----file ---new project---windows form
Now on form Take 1 button and give some color on button if u want
Now double click on Button and write code as follow befor that add Namespace System.Drawing
{
This.Close();
}
Now double click on Form Load and write code as follow
{
System.Drawing.Drawing2D.
GraphicsPath
myp =
new
System.Drawing.Drawing2D.
GraphicsPath
();
myp.AddPolygon(
new
Point
[]{
new
Point
(0,0),
new
Point
(0,
this
.Height),
new
Poi
(
this
.Width,0)});
Region
myreg=
new
Region
(myp);
this
.Region=myreg;
}
Now Run application output will come like this
How to create a shaped control in .NET
Up Next
How to draw shape?
Ebook Download
View all
Real-Time Blockchain Notifications
Read by 494 people
Download Now!
Learn
View all
Membership not found