Hi!
I know I'm a bit late, but for anyone who still needs it check ->
this vid
Create your own class that inherits from Textbox and apply the code... something like this ->
using System.Windows.Forms;
using System.Drawing;
class round :TextBox
{
[System.Runtime.InteropServices.DllImport("gdi32.dll", EntryPoint = "CreateRoundRectRgn")]
private static extern IntPtr CreateRoundRectRgn
(
int nLeftRect,
int nTopRect,
int nRightRect,
int nBottomRect,
int nheightRect,
int nweightRect
);
protected override void OnCreateControl()
{
base.OnCreateControl();
this.Region = System.Drawing.Region.FromHrgn(CreateRoundRectRgn(2,3,this.Width,this.Height,15,15));
}
That's it!
;)