C#toolTip应用
来源:互联网 发布:js弹出一个window窗口 编辑:程序博客网 时间:2024/05/17 07:46
namespace WindowsFormsApplication1{ partial class Form1 { /// <summary> /// 必需的设计器变量。 /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// 清理所有正在使用的资源。 /// </summary> /// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param> protected override void Dispose(bool disposing) { if (disposing && (components != null)) { components.Dispose(); } base.Dispose(disposing); } #region Windows 窗体设计器生成的代码 /// <summary> /// 设计器支持所需的方法 - 不要 /// 使用代码编辑器修改此方法的内容。 /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); this.pictureBox1 = new System.Windows.Forms.PictureBox(); this.toolTip1 = new System.Windows.Forms.ToolTip(this.components); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); this.SuspendLayout(); // // pictureBox1 // this.pictureBox1.Anchor = System.Windows.Forms.AnchorStyles.None; this.pictureBox1.Location = new System.Drawing.Point(67, 25); this.pictureBox1.Name = "pictureBox1"; this.pictureBox1.Size = new System.Drawing.Size(426, 275); this.pictureBox1.TabIndex = 0; this.pictureBox1.TabStop = false; this.pictureBox1.MouseEnter += new System.EventHandler(this.pictureBox1_MouseEnter); // // Form1 // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(570, 324); this.Controls.Add(this.pictureBox1); this.Name = "Form1"; this.Text = "Form1"; this.Load += new System.EventHandler(this.Form1_Load); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); this.ResumeLayout(false); } #endregion private System.Windows.Forms.PictureBox pictureBox1; private System.Windows.Forms.ToolTip toolTip1; }}
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Windows.Forms;namespace WindowsFormsApplication1{ public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { toolTip1.Active = true; this.pictureBox1.Image = Image.FromFile(@"D:\u=2407710322,4021140033&fm=23&gp=0.jpg");//动态加载图片 this.pictureBox1.SizeMode = PictureBoxSizeMode.StretchImage;//设置图片显示方式 pictureBox1.Anchor = (AnchorStyles.Bottom|AnchorStyles.Left|AnchorStyles.Right| AnchorStyles.Top); } private void pictureBox1_MouseEnter(object sender, EventArgs e) { toolTip1.SetToolTip(pictureBox1,"暗黑血统2"); } }}
0 0
- C#toolTip应用
- ToolTip的应用技巧收集
- ToolTip
- tooltip
- Tooltip
- tooltip
- tooltip
- struts ajax应用一 ToolTip提示
- jquery插件tooltip应用实例[实例]
- DataGrid中的高级应用,创建ToolTip
- C# 學習使用ToolTip c#_Framework
- C#Winform中ToolTip的简单用法
- C#Winform开发经验之ToolTip使用
- C#Winform中ToolTip的简单用法
- 给你的HTML5应用添加一个漂亮的Tooltip
- C#(WinForm)设置comboBox选定项为tooltip内容
- [C#]MD5,Tooltip,几种类型的范围
- tooltip , mask
- PHP+SMTP的邮件发送机制
- TBDR缺点
- The absolute uri: http://www.keystudio.com/tags/premission cannot be resolved in either web.xml or t
- hdu 4460 Friend Chains (限制条件的spfa)
- MySQL备份与恢复
- C#toolTip应用
- 把现有Unity3d游戏向Windows Phone 8.1移植(基础原理)
- 异常总结
- HDOJ2001-计算两点间的距离【水题】
- 第四章字符串和多维数组
- hdu4601 Letter Tree,trie,bfs,dfs,二分,rmq
- 函数调用过程
- 两个jar包中,有相同资源,如何加载。
- Java 内存区域和GC机制