using 系统;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using 来;
using 包含;
using System.Windows.Forms;
using System.Drawing;
namespace WindowsFormsApplication1
{
,,,(ToolboxItem(真正的),
,,,public partial class TextBoxLine :文本框
,,,{
,,,,,,,public TextBoxLine ()
,,,,,,,{
,,,,,,,,,,,InitializeComponent ();
,,,,,,,,,,,this.SetStyle (ControlStyles.DoubleBuffer,,真的);
,,,,,,,,,,,this.BorderStyle =, BorderStyle.None;,,
,,,,,,,}
,,,,,,,public TextBoxLine (IContainer 容器)
,,,,,,,{
,,,,,,,,,,,container.Add(这个);
,,,,,,,,,,,InitializeComponent ();
,,,,,,,,,,,this.SetStyle (ControlStyles.DoubleBuffer,,真的);
,,,,,,,,,,,this.BorderStyle =, BorderStyle.None;,,
,,,,,,,}
,,,,,,,private bool m_DrawLine =,假;
,,,,,,,public bool 画直线
,,,,,,,{
,,,,,,,,,,,
,,,,,,,,,,,{
,,,,,,,,,,,,,,,return this.m_DrawLine;
,,,,,,,,,,,}
,,,,,,,,,,,
,,,,,,,,,,,{
,,,,,,,,,,,,,,,=,this.m_DrawLine 价值;
,,,,,,,,,,,,,,,this.Invalidate ();
,,,,,,,,,,,}
,,,,,,,}
,,,,,,,private Color _linecolor =, Color.Black;
,,,,,,,///,& lt; summary>
,,,,,,,///,线条颜色
,,,,,,,///,& lt;/summary>
,,,,,,,public Color LineColor
,,,,,,,{
,,,,,,,,,,,
,,,,,,,,,,,{
,,,,,,,,,,,,,,,return this._linecolor;
,,,,,,,,,,,}
,,,,,,,,,,,
,,,,,,,,,,,{
,,,,,,,,,,,,,,,=,this._linecolor 价值;
,,,,,,,,,,,,,,,this.Invalidate ();
,,,,,,,,,,,}
,,,,,,,}
,,,,,,,(System.Runtime.InteropServices.DllImport (“user32.dll ”)]
,,,,,,,static extern int ReleaseDC (IntPtr hWnd, IntPtr hDC);
,,,,,,,(System.Runtime.InteropServices.DllImport (“user32.dll ”)]
,,,,,,,static extern IntPtr GetWindowDC (IntPtr hWnd);
,,,,,,,protected override void 指向(ref Message 米)
,,,,,,,{
,,,,,,,,,,,base.WndProc(时间,ref m);
,,,,,,,,,,,if (m.Msg ==, 0 xf | |, m.Msg ==, 0 x133)
,,,,,,,,,,,{
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null