Вы можете попробовать это.
Переопределите событие OnPaint TextBox.
protected override void OnPaint(PaintEventArgs e)
{
SolidBrush drawBrush = new SolidBrush(ForeColor); //Use the ForeColor property
// Draw string to screen.
e.Graphics.DrawString(Text, Font, drawBrush, 0f,0f); //Use the Font property
}
установить ControlStyles на "UserPaint"
public MyTextBox()//constructor
{
// This call is required by the Windows.Forms Form Designer.
this.SetStyle(ControlStyles.UserPaint,true);
InitializeComponent();
// TODO: Add any initialization after the InitForm call
}
Refrence
Или вы можете попробовать этот взломать
В событии Enter установите фокус
int index=this.Controls.IndexOf(this.textBox1);
this.Controls[index-1].Focus();
Таким образом, ваш контроль не будет сфокусирован и будет вести себя как отключенный.