Posted
ok so go to ur code and put this below public partial class
[DllImport("Gdi32.dll", EntryPoint = "CreateRoundRectRgn")]
private static extern IntPtr CreateRoundRectRgn
(
int nLeftRect, // x-coordinate of upper-left corner
int nTopRect, // y-coordinate of upper-left corner
int nRightRect, // x-coordinate of lower-right corner
int nBottomRect, // y-coordinate of lower-right corner
int nWidthEllipse, // height of ellipse
int nHeightEllipse // width of ellipse
);
and type up on the using things
using System.Runtime.InteropServices;
now below InitializeComponent(); type this
this.FormBorderStyle = FormBorderStyle.None;
Region = System.Drawing.Region.FromHrgn(CreateRoundRectRgn(0, 0, Width, Height, 20, 20));
and you should have a rounded rectange form :DDDDDDD
it will be like this!! :D
yes
Replied
ok cool i guess
Cancel
Post
I hide links and stuff in my post ✌ | they/them or he/him | stupid gay furry | ogredale#4684 | My epic site
♥💙💚💛💜🧡🤎💕
https://i.imgur.com/TVnRBe9.png
Users viewing this thread:
( Members: 0, Guests: 1, Total: 1 )
Cancel
Post