windows form rounded corners
C#
using System;
using System.Windows.Forms;
using System.Runtime.InteropServices;
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
[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, // width of ellipse
int nHeightEllipse // height of ellipse
);
public Form1()
{
InitializeComponent();
this.FormBorderStyle = FormBorderStyle.None;
Region = System.Drawing.Region.FromHrgn(CreateRoundRectRgn(0, 0, Width, Height, 20, 20));
}
}
}
Also in C#:
- Title
- format string to date only c#
- Category
- C#
- Title
- try catch c#
- Category
- C#
- Title
- c# string remove special characters
- Category
- C#
- Title
- c# how to use inovke
- Category
- C#
- Title
- leantween id
- Category
- C#
- Title
- C# random.Next error
- Category
- C#
- Title
- gfortran: declare an array
- Category
- C#
- Title
- how to cast list to observablecollection c#
- Category
- C#
- Title
- c# reverse a string for loop
- Category
- C#
- Title
- ecs get specific entities with component
- Category
- C#
- Title
- c# multiple catch exceptions
- Category
- C#
- Title
- console application in c# ms crm
- Category
- C#
- Title
- c# lambda expression
- Category
- C#
- Title
- Assets\playermove.cs(30,37): error CS1003: Syntax error, ',' expected
- Category
- C#
- Title
- constructor in inherited class c#
- Category
- C#
- Title
- c# foreach namevaluecollection
- Category
- C#
- Title
- how to create a variable in C#
- Category
- C#
- Title
- how to create a list in c# unity
- Category
- C#
- Title
- unity invoke
- Category
- C#
- Title
- unity connect to firebase
- Category
- C#
- Title
- how to find the type of a object c#
- Category
- C#
- Title
- c# list.foreach
- Category
- C#
- Title
- how to delay something in c# unity
- Category
- C#
- Title
- c# remove first 5 characters from string
- Category
- C#
- Title
- date time heutiges datum
- Category
- C#
- Title
- unity how to change rotation
- Category
- C#
- Title
- Unity C# instantiate prefab
- Category
- C#
- Title
- unity remove gameobject
- Category
- C#
- Title
- c# char array to string
- Category
- C#
- Title
- c# delegate return value invoke
- Category
- C#
- Title
- decimals not stored in azure tables
- Category
- C#
- Title
- .net core download image from url binary file
- Category
- C#
- Title
- unity transfoprm position y change
- Category
- C#
- Title
- asign only common fields in c# object
- Category
- C#
- Title
- center an image horizontally and vertically
- Category
- C#
- Title
- create dropdown in datatable c# dynamically
- Category
- C#
- Title
- application variable in asp.net core
- Category
- C#
- Title
- wpf use enum description
- Category
- C#
- Title
- void start
- Category
- C#
- Title
- c# how to exit program
- Category
- C#
- Title
- same click event diffrenet buttonms c#
- Category
- C#
- Title
- set width of rect transform unity
- Category
- C#
- Title
- Unity if object doens't exist
- Category
- C#
- Title
- write string multiple times c#
- Category
- C#
- Title
- c# download file
- Category
- C#
- Title
- c# remove last value from list
- Category
- C#
- Title
- or in unity c#
- Category
- C#
- Title
- asp.net core 3.1: cast jObject to dictionary<string,string>
- Category
- C#
- Title
- doest all the methos in interface need to implement c#
- Category
- C#
- Title
- how to change an int value c#
- Category
- C#
- Title
- c# request run as administrator
- Category
- C#
- Title
- how to copy one array value to another without reference c#
- Category
- C#
- Title
- math class C# exponents
- Category
- C#
- Title
- c# multiline comment
- Category
- C#
- Title
- making a list of chars in c#
- Category
- C#
- Title
- asp textarea
- Category
- C#
- Title
- unity check when clicked on object
- Category
- C#
- Title
- Unity C# make object face away
- Category
- C#
- Title
- C# previous method
- Category
- C#
- Title
- c sharp comments
- Category
- C#
- Title
- unity rotate towards mouse
- Category
- C#
- Title
- array to list C
- Category
- C#
- Title
- how to draw a dot in c#
- Category
- C#
- Title
- unity round
- Category
- C#
- Title
- c# keyboard enter
- Category
- C#
- Title
- how to reference function in unity
- Category
- C#
- Title
- unity find object by name
- Category
- C#
- Title
- c# list tuple
- Category
- C#
- Title
- polling data source c# using threads
- Category
- C#
- Title
- c# merge two lists as queryable
- Category
- C#
- Title
- unity onclick object
- Category
- C#
- Title
- unity set list of strings
- Category
- C#
- Title
- linq in c#
- Category
- C#
- Title
- how to reference scripts in other scenes unity
- Category
- C#
- Title
- how to initiate a varaible in cs
- Category
- C#
- Title
- unity rotation
- Category
- C#
- Title
- unity html request
- Category
- C#
- Title
- vector between two points unity
- Category
- C#
- Title
- cursorlockmode cannot be used as a method C#
- Category
- C#
- Title
- unknown discriminator value mongodb
- Category
- C#
- Title
- linq foreach c#
- Category
- C#
- Title
- parse strings into words C#
- Category
- C#
- Title
- how to pass object as test case in nunit c#
- Category
- C#
- Title
- c# filesystemwatcher double events
- Category
- C#
- Title
- unity timer with miliseconds
- Category
- C#
- Title
- c# close window
- Category
- C#
- Title
- c# split large file into chunks
- Category
- C#
- Title
- sum of digits in c#
- Category
- C#
- Title
- get web config key value in c# razor view
- Category
- C#
- Title
- unity make a int arry with preset values
- Category
- C#
- Title
- c# if statement
- Category
- C#
- Title
- how to raycast unit
- Category
- C#
- Title
- c# length 2d array
- Category
- C#
- Title
- c# expression func automatically select return type
- Category
- C#
- Title
- c# calculate difference between two dates in days
- Category
- C#
- Title
- nullable unique constraint ef
- Category
- C#
- Title
- defining vectors in c#
- Category
- C#
- Title
- background color with opacity
- Category
- C#
- Title
- run async methods within a sync process
- Category
- C#
- Title
- c sharp check if key in dictionary
- Category
- C#