hi
I have used keypress event for controls. But when using multilinetextbox control while entering next line it is switching to the next control so how to restrict that.
protected override bool ProcessKeyPreview(ref Message m)
{
if (m.Msg == 0x0100 && (int) m.WParam == 13)
{
this.ProcessTabKey(true);
}
return base.ProcessKeyPreview(ref m);
}
Mark as Answer if its helpful to you
Kumaraspcode2009@gmail.com