发新话题
打印

如何让TextBox的黑色边框变成淡蓝色(borderstyle=FixedSingle)

如何让TextBox的黑色边框变成淡蓝色(borderstyle=FixedSingle)

  我在写的过程中发现了这个控件并不用 Paint 事件,所以只好直接截取 WndProc 函数了,很简单,是这样的:

Public Class TextBoxBlue
  Inherits TextBox

  Protected Overrides Sub WndProc(ByRef m As system.Windows.Forms.Message)
    MyBase.WndProc(m)
    Const WM_PAINT As Integer =

TOP

发新话题