Thanks a lot Henry but i need info in detail. I somehow had difficulty in understading.
Below is the technique for implementation wrt forms
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;
using System.Runtime.InteropServices;
namespace RndCorner
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
Region = System.Drawing.Region.FromHrgn(CreateRoundRectRgn( 0, 0,Width-10, Height-10, 20, 20));
}
private void Form1_Load(object sender, EventArgs e)
{
}
[DllImport("Gdi32.dll", EntryPoint = "CreateRoundRectRgn")]
private static extern IntPtr CreateRoundRectRgn(
int nLeftRect,
int nTopRect,
int nRightRect,
int nBottomRect,
int nWidthEllipse,
int nHeightEllipse
);
}
}
* Same way is there any way for grid