M
MenuChen
This Code doesn't work
************************
Protected Overrides Sub WndProc(ByRef m As Message)
MyBase.WndProc(m)
Dim myLine As Graphics =
System.Drawing.Graphics.FromHwnd(Me.Handle)
myLine.DrawLine(System.Drawing.Pens.Red, Me.Left,
(Me.Top + Me.Height) \ 2, Me.Left + Me.Width, (Me.Top +
Me.Height) \ 2)
End Sub
************************
I put it in my Controls who inherits .NET's TextBox
controls,I want it to Draw a Red Line on the Rewrited
TextBox.
Who can help me ?thanks a lot...
Best Regards
************************
Protected Overrides Sub WndProc(ByRef m As Message)
MyBase.WndProc(m)
Dim myLine As Graphics =
System.Drawing.Graphics.FromHwnd(Me.Handle)
myLine.DrawLine(System.Drawing.Pens.Red, Me.Left,
(Me.Top + Me.Height) \ 2, Me.Left + Me.Width, (Me.Top +
Me.Height) \ 2)
End Sub
************************
I put it in my Controls who inherits .NET's TextBox
controls,I want it to Draw a Red Line on the Rewrited
TextBox.
Who can help me ?thanks a lot...
Best Regards