后端开发|C#.Net教程
C# ,滚动条,Label控件
后端开发-C#.Net教程
C# 带滚动条的Label控件,用鼠标选的时候还是有点闪烁:
bbs的源码,rst模式安装ubuntu,爬虫网站采集403,布尔 php,seo最新资料lzw
namespace 带滚动条的Label控件{ public class TextBoxLabel : System.Windows.Forms.TextBox { [DllImport("user32", EntryPoint = "HideCaret")] private static extern bool HideCaret(IntPtr hWnd); [DllImport("user32", EntryPoint = "ShowCaret")] private static extern bool ShowCaret(IntPtr hWnd); public TextBoxLabel():base(){ this.TabStop = false; this.SetStyle(ControlStyles.Selectable, false); this.Cursor = Cursors.Default; this.ReadOnly = true; this.ShortcutsEnabled = false; this.HideSelection = true; this.GotFocus += new EventHandler(TextBoxLabel_GotFocus); this.MouseMove += new MouseEventHandler(TextBoxLabel_MouseMove); } private void TextBoxLabel_GotFocus(Object sender, System.EventArgs e){ if (ShowCaret(((TextBox)sender).Handle)){HideCaret(((TextBox)sender).Handle); } } private void TextBoxLabel_MouseMove(Object sender, MouseEventArgs e){ if (((TextBox)sender).SelectedText.Length > 0){((TextBox)sender).SelectionLength = 0; } } }}
效果:
免费ip提取网站源码,mi3 ubuntu,jdk9的tomcat,骷髅爬虫蜥蜴,php爬取视频,垫江专业性seo推广大概多少钱lzw
网站名称源码,vscode 使用c语言,ubuntu 进程号,tomcat版本过低,sqlite恢复微信记录,爬虫机器人有哪些功能,php 无符号,seo多久可以见效,高端大气的企业网站模板,网页侧边菜单打开收起,xampp 查看wordpress模板lzw