How to Make a Card in C# Window Form Application || Technical Hassan Ali

Опубликовано: 30 Октябрь 2024
на канале: Technical Hassan Ali
704
6

How to Make a Card in C# Window Form Application, C# window Form Application, c# UI Design are made in videos.

#csharp, #Carddesign, #technicalhassanali,

Here this Code is used in this Video:

using System.Runtime.InteropServices; // Adding in the Library
[DllImport("Gdi32.dll", EntryPoint = "CreateRoundRectRgn")] // Ading this Code
private static extern IntPtr CreateRoundRectRgn // Create A class
(
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
);


this.FormBorderStyle = FormBorderStyle.None; // Using This Code
Region = System.Drawing.Region.FromHrgn(CreateRoundRectRgn(0, 0, Width, Height, 20, 20)); //Adding This Code