private void InitializeComponent()
{
this.firstLabel = new System.Windows.Forms.Label();
this.secondLabel = new System.Windows.Forms.Label();
this.labelsToolTip = new System.Windows.Forms.ToolTip(new System.ComponentModel.Container());
this.SuspendLayout();
//
// firstLabel
//
this.firstLabel.AutoSize = true;
this.firstLabel.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.firstLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.firstLabel.Location = new System.Drawing.Point(12, 20);
this.firstLabel.Name = "firstLabel";
this.firstLabel.Size = new System.Drawing.Size(92, 18);
this.firstLabel.TabIndex = 0;
this.firstLabel.Text = "This is a label.";
this.labelsToolTip.SetToolTip(this.firstLabel, "First Label");
//
// secondLabel
//
this.secondLabel.AutoSize = true;
this.secondLabel.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.secondLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.secondLabel.Location = new System.Drawing.Point(12, 69);
this.secondLabel.Name = "secondLabel";
this.secondLabel.Size = new System.Drawing.Size(133, 18);
this.secondLabel.TabIndex = 1;
this.secondLabel.Tag = "";
this.secondLabel.Text = "This is another Label.";
this.labelsToolTip.SetToolTip(this.secondLabel, "Second Label");
//
// ToolTipExampleForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(252, 124);
this.Controls.Add(this.secondLabel);
this.Controls.Add(this.firstLabel);
this.Name = "ToolTipExampleForm";
this.Text = "ToolTip Demonstration";
this.ResumeLayout(false);
this.PerformLayout();
}
分享到:
相关推荐
c# 继承 TextBox 在前面添加Lable
Lable 多行显示 及 颜色
单一Lable显示不同的颜色demo用法导入分类
VC++ 一个功能丰富的CLable控件,是对label控件的拓展
根据要显示字体的多少,行间距,字间距的调整,计算出lable总的高度的方法,此demo简单易懂
在AX中支持多国语言标签,一个标签文件ID会生成多个以ald为后缀的标签语言文件 AX标签从一个环境转移到另一个环境时可能产生错乱的情况,方便AX标签的管理
在C#中, Winform的Picture控件上显示透明的Lable字体
C#动态生成控件以及添加事件处理
使用 winform 实现 Button 与 Lable控件的组合使用——自定义控件,实现Button控件的事件处理等,其中包含实例进行自定义控件的使用示例......
看着下吧。我觉得挺好用的,那时候做这个控件是为了实现radioButton的功能。
简单的方法做出漂亮的表格,以及query的基础使用和相对路径的书写
lable marrix
进入.aspx文件之后,在设计界面中添加9个Lable控件。Lable控件在标准组中。得到的源代码是这样的。 <%@ Page Language=C# AutoEventWireup=true CodeFile=WebForm4.aspx.cs Inherits=WebForm4 %> <!...
http://www.cnblogs.com/li-peng/p/4029885.html的源码,QT在QTableView的一列里添加两个按钮
stu_lable.php
yolov8-onnx模型 lable
yolov8-onnx模型 lable
html中lable标签的作用和几个例子
前段时间帮算法同事写的深度学习点位标注...保存点位为横纵坐标文本文档 支持点位删除 备注:该工具是JAVA语言编写,运行前需要安装jdk。 对工具源码感兴趣的朋友请访问 https://github.com/weng19930401/point_lable
duilib原生库,派生Lable控件,C++实现文字跑马灯 滚动显示的效果。 派生出来的lable控件,具有以下功能: 1. 基类 Lable的所有基本功能 ...该资源包含了 添加一个自定义控件需要改动所有原生duilib的代码