资 源 简 介
C# 为窗体控件添加浮动的帮助信息框,private void Form1_Load(object sender, EventArgs e)
{//为窗体控件添加浮动的帮助信息框
//在标题栏上显示帮助按钮
this.HelpButton = true;
this.MaximizeBox = false;
this.MinimizeBox = false;
//指定显示指定控件的帮助信息
this.helpProvider1.SetShowHelp(this.textBox1, true);
//指定与指定的控件关联的帮助字符串
this.helpProvider1.SetHelpString(this.textBox1, "包括科目编码和科目名称");
this.helpProvider1.SetShowHelp(this.textBox2, true);
this.helpProvider1.SetHelpString(this.textBox2, "输入数据包括分节号");
this.helpProvider1.SetShowHelp(this.textBox3, true);
this.helpProvider1.SetHelpString(this.textBox3, "输入数据包括分节号");
this.helpProvider1.SetShowHelp(this.textBox4, true);
this.helpProvider1.SetHelpString(this.textBox4, "输入数据包括分节号");
this.helpProvider1.SetShowHelp(this.textBox5, true);
this.helpProvider1.SetHelpString(this.textBox5, "期末余额=期初余额+本期发生额");
}