Non rectangular Form Development in C#.net
The given below code is for creating a non rectangular form.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace blog_programs
{
public partial class non_rectangular_form : Form
{
System.Drawing.Drawing2D.GraphicsPath mypath = new System.Drawing.Drawing2D.GraphicsPath();
The code in orange background is the class which is used.
Which has the function which support the code given below
public non_rectangular_form()
{
InitializeComponent();
}
private void non_rectangular_form_Load(object sender, EventArgs e)
{
mypath.AddEllipse(0, 0, this.Width, this.Height);
Region myregion = new Region(mypath);
this.Region = myregion;
}
}
}
The given below code is for creating a non rectangular form.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace blog_programs
{
public partial class non_rectangular_form : Form
{
System.Drawing.Drawing2D.GraphicsPath mypath = new System.Drawing.Drawing2D.GraphicsPath();
The code in orange background is the class which is used.
Which has the function which support the code given below
public non_rectangular_form()
{
InitializeComponent();
}
private void non_rectangular_form_Load(object sender, EventArgs e)
{
mypath.AddEllipse(0, 0, this.Width, this.Height);
Region myregion = new Region(mypath);
this.Region = myregion;
}
}
}