• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# Forms.ToolTip类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中System.Windows.Forms.ToolTip的典型用法代码示例。如果您正苦于以下问题:C# ToolTip类的具体用法?C# ToolTip怎么用?C# ToolTip使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



ToolTip类属于System.Windows.Forms命名空间,在下文中一共展示了ToolTip类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: create_tool_tip_for

 public IApplicationWindow create_tool_tip_for(string title, string caption, Control control)
 {
     var tip = new ToolTip {IsBalloon = true, ToolTipTitle = title};
     tip.SetToolTip(control, caption);
     control.Controls.Add(new ControlAdapter(tip));
     return this;
 }
开发者ID:mokhan,项目名称:mo.money,代码行数:7,代码来源:ApplicationWindow.cs


示例2: WorkForm

        public WorkForm()
        {
            dataOpen = new myclass[11];
            int i = 0;
            while (i != 11)
            {
                dataOpen[i] = new myclass();
                i++;
            }

            CallBackMy.callbackEventHandler = new CallBackMy.callbackEvent(this.ReloadWork);

            if (!workTimer.Enabled)
            {

                workTimer.Tick += new EventHandler(timer_work); //подписываемся на события Tick
                workTimer.Interval = 200;
                workTimer.Start();
            }

            InitializeComponent();
            ToolTip help = new ToolTip();
            help.SetToolTip(prevOpenForm, "Переход на начальное окно");
            help.SetToolTip(nextPowerButton, "Переход на построение мощностной характеристики");
            help.SetToolTip(upPozReostatButton, "Понижение ступени реостата");
            help.SetToolTip(downPozReostatButton,"Повышение ступени реостата");
        }
开发者ID:Shurik1980,项目名称:reostat_atika,代码行数:27,代码来源:WorkForm.cs


示例3: ViewLayoutReplicator

        public ViewLayoutReplicator()
        {
            InitializeComponent();

            var tt = new ToolTip();
            tt.SetToolTip(lvSourceViews, "Double click on a selected row to display its layout XML");
        }
开发者ID:rehanhsyed,项目名称:XrmToolBox,代码行数:7,代码来源:ViewLayoutReplicator.cs


示例4: AjouterDevis

        public AjouterDevis(string dv_code, Devis1 d,Accueil ac)
        {
            InitializeComponent();
            tbCodeDevis.Text = dv_code;
            this.d = d;
            this.ac = ac;

            ToolTip t = new ToolTip();

            t.ShowAlways = true;
            t.SetToolTip(tbCP, "Insertion des numéros uniquement.");

            t.ShowAlways = true;
            t.SetToolTip(tbFixe, "Insertion des numéros uniquement.");

            t.ShowAlways = true;
            t.SetToolTip(tbMobile, "Insertion des numéros uniquement.");

            t.ShowAlways = true;
            t.SetToolTip(tbFax, "Insertion des numéros uniquement.");

            t.ShowAlways = true;
            t.SetToolTip(textBox7, "Insertion des numéros uniquement.");

            t.ShowAlways = true;
            t.SetToolTip(pictureBox3, "Ajouter");

            t.ShowAlways = true;
            t.SetToolTip(pictureBox4, "Modifier");

            t.ShowAlways = true;
            t.SetToolTip(pictureBox5, "Supprimer");
        }
开发者ID:judaHa,项目名称:dotNETApplications,代码行数:33,代码来源:AjouterDevis.cs


示例5: Form1_Load

        private void Form1_Load(object sender, EventArgs e)
        {
            System.Windows.Forms.ToolTip ToolTip1 = new System.Windows.Forms.ToolTip();
            ToolTip1.SetToolTip(this.textBox1, "Hello");

            delta = this.Width - textBox1.Width;
        }
开发者ID:3020group,项目名称:MovieOrganizer,代码行数:7,代码来源:Form1.cs


示例6: AboutForm

        public AboutForm()
        {
            InitializeComponent();

            purchaseButton.Hide();

            dataGrid.Rows.Clear();
            dataGrid.Rows.Add("Alloclave");
            dataGrid.Rows.Add("Version " + Common.Version);
            dataGrid.Rows.Add("© Copyright 2013");
            dataGrid.Rows.Add("Circular Shift");
            dataGrid.Rows.Add("www.circularshift.com");
            dataGrid.Rows.Add("For support, email [email protected]");
            dataGrid.Rows.Add("");
            dataGrid.Rows.Add(Licensing.LicenseName);

            if (Licensing.IsLicensed)
            {
                dataGrid.Rows.Add(Licensing.LicenseEmail);
                dataGrid.Rows.Add("Support Ends " + Licensing.LicenseDate.ToShortDateString());
            }
            else
            {
                dataGrid.Rows.Add("");
                dataGrid.Rows.Add("");
            }

            ToolTip tt1 = new ToolTip();
            tt1.SetToolTip(companyLogoPictureBox, "Open " + Common.CompanyWebsiteUrl);

            ToolTip tt2 = new ToolTip();
            tt2.SetToolTip(logoPictureBox, "Open " + Common.ProductWebsiteUrl);
        }
开发者ID:dakahler,项目名称:alloclave,代码行数:33,代码来源:AboutForm.cs


示例7: Initialize

        public void Initialize()
        {
            Text = _language.Title + " - " + (IntPtr.Size * 8) + "-bit";
            okButton.Text = _languageGeneral.OK;
            string[] versionInfo = Utilities.AssemblyVersion.Split('.');
            labelProduct.Text = String.Format("{0} {1}.{2}.{3}, build", _languageGeneral.Title, versionInfo[0], versionInfo[1], versionInfo[2]);
            linkLabelGitBuildHash.Left = labelProduct.Left + labelProduct.Width - 5;
            linkLabelGitBuildHash.LinkColor = Color.FromArgb(0, 102, 204);
            linkLabelGitBuildHash.VisitedLinkColor = Color.FromArgb(0, 102, 204);

            string revisionNumber = "0";
            if (versionInfo.Length >= 4)
                revisionNumber = versionInfo[3];
            linkLabelGitBuildHash.Text = revisionNumber;
            var toolTip1 = new ToolTip();
            toolTip1.SetToolTip(linkLabelGitBuildHash, GetGitHubHashLink());

            string aboutText = _language.AboutText1.TrimEnd() + Environment.NewLine +
                               Environment.NewLine +
                               _languageGeneral.TranslatedBy.Trim();
            while (aboutText.Contains("\n ") || aboutText.Contains("\n\t"))
            {
                aboutText = aboutText.Replace("\n ", "\n");
                aboutText = aboutText.Replace("\n\t", "\n");
            }
            richTextBoxAbout1.Text = aboutText;

            double height = TextDraw.MeasureTextHeight(richTextBoxAbout1.Font, richTextBoxAbout1.Text, false)*1.4 + 80;
            richTextBoxAbout1.Height = (int) height;
            Height = richTextBoxAbout1.Top + richTextBoxAbout1.Height + 90;
        }
开发者ID:nguansak,项目名称:subtitleedit,代码行数:31,代码来源:About.cs


示例8: Form2

 public Form2()
 {
     InitializeComponent();
     textBox1.Text = "1";
     textBox2.Text = "5";
     textBox3.Text = "5";
     textBox4.Text = "25";
     textBox5.Text = "5";
     textBox6.Text = "0.1";
     textBox7.Text = "100";
     label10.Text = " ";
     label9.Text = " ";
     label11.Text = " ";
     label12.Text = " ";
     ToolTip toolTip1 = new ToolTip();
     toolTip1.ShowAlways = true;
     toolTip1.SetToolTip(label1, "Manji α znači veću važnost udaljenosti gradova.");
     toolTip1.SetToolTip(label2, "Manji β znači veću važnost feromonskih tragova.");
     toolTip1.SetToolTip(label3, "Manji γ znači veću važnost heuristike d(i,0) + d(0,j) - d(i,j)");
     toolTip1.SetToolTip(label4, "Manji λ znači veću važnost iskoristivnosti kapaciteta.");
     toolTip1.SetToolTip(label5, "Veći parametar evaporacije znači veću sklonost istraživanju novih rješenja.");
     toolTip1.SetToolTip(label6, "Broj mrava koji u svakoj iteraciji traže rješenja.");
     toolTip1.SetToolTip(label4, "Manji λ znači veću važnost iskoristivnosti kapaciteta.");
     toolTip1.SetToolTip(label7, "Ukupni broj iteracija.");
 }
开发者ID:brunobrodaric,项目名称:CVRPSaSuceljem,代码行数:25,代码来源:Form2.cs


示例9: ExtendedToolTipCheckBox

 public ExtendedToolTipCheckBox()
 {
     InitializeComponent();
     _ToolTip = new ToolTip();
     this.MouseLeave += new EventHandler(ExtendedToolTipCheckBox_MouseLeave);
     this.MouseHover += new EventHandler(ExtendedToolTipCheckBox_MouseHover);
 }
开发者ID:LucasPeacecraft,项目名称:rawr,代码行数:7,代码来源:ExtendedToolTipCheckBox.cs


示例10: CriteriaControls

        public CriteriaControls()
        {
            toolTip = new ToolTip();

            Height = 400;
            Margin = new Padding(0);
        }
开发者ID:kanastasov,项目名称:Forex-Strategy-Builder,代码行数:7,代码来源:CriteriaControls.cs


示例11: AdminForm_Load

 private void AdminForm_Load(object sender, EventArgs e)
 {
     Utilities.SetWindowTheme(userListView.Handle, "Explorer", null);
     PopulateListView();
      var tt = new ToolTip();
      tt.SetToolTip(userListView, "Double click to toggle admin");
 }
开发者ID:sanyaade-fintechnology,项目名称:NinjaTrader,代码行数:7,代码来源:AdminForm.cs


示例12: SplitContainerTools

        /// <summary>Initializes a new instance of the <see cref="SplitContainerTools"/> class.</summary>
        /// <param name="container">
        /// The <see cref="System.Windows.Forms.SplitContainer"/> to which this instance will be bound.
        /// </param>
        public SplitContainerTools(SplitContainer container)
        {
            split = container;
            _keepFocus = false;
            _showGripper = true;
            _showButtons = SplitContainerButtons.None;
            _panel1Border = false;
            _panel2Border = false;
            _buttons = new SplitContainerButton[] { };
            _tooltip = new ToolTip();

            _splitRectInternal = typeof(SplitContainer).GetField("splitterRect", Reflection.BindingFlags.NonPublic |
                                                                                 Reflection.BindingFlags.GetField |
                                                                                 Reflection.BindingFlags.Instance);

            split.Paint += split_Paint;
            split.MouseDown += split_MouseDown;
            split.MouseUp += split_MouseUp;
            split.MouseClick += split_MouseClick;
            split.MouseMove += split_MouseMove;
            split.MouseLeave += (o, e) => split.Cursor = Cursors.Default;
            split.SplitterMoved += split_SplitterMoved;
            split.SizeChanged += split_Resize;
            split.Disposed += (o, e) => _tooltip.Dispose();

            ((Panel)split.Panel1).ClientSizeChanged += Split_Panel_CollapsedChanged;
            ((Panel)split.Panel2).LocationChanged += Split_Panel_CollapsedChanged;
        }
开发者ID:franzalex,项目名称:SimpleGui,代码行数:32,代码来源:SplitContainerTools.cs


示例13: InitializeComponent

		private void InitializeComponent()
		{
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(frmBackupDatabase));
			this.components = new System.ComponentModel.Container();
			this.ToolTip1 = new System.Windows.Forms.ToolTip(components);
			this.tmrBackup = new System.Windows.Forms.Timer(components);
			this.SuspendLayout();
			this.ToolTip1.Active = true;
			this.ControlBox = false;
			this.BackColor = System.Drawing.Color.FromArgb(255, 192, 192);
			this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
			this.ClientSize = new System.Drawing.Size(463, 95);
			this.Location = new System.Drawing.Point(3, 3);
			this.MaximizeBox = false;
			this.MinimizeBox = false;
			this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
			this.BackgroundImage = (System.Drawing.Image)resources.GetObject("frmBackupDatabase.BackgroundImage");
			this.ShowInTaskbar = false;
			this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
			this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
			this.Enabled = true;
			this.KeyPreview = false;
			this.Cursor = System.Windows.Forms.Cursors.Default;
			this.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.HelpButton = false;
			this.WindowState = System.Windows.Forms.FormWindowState.Normal;
			this.Name = "frmBackupDatabase";
			this.tmrBackup.Enabled = false;
			this.tmrBackup.Interval = 100;
			this.ResumeLayout(false);
			this.PerformLayout();
		}
开发者ID:nodoid,项目名称:PointOfSale,代码行数:32,代码来源:frmBackupDatabase.Designer.cs


示例14: HideTooltip

 private void HideTooltip()
 {
     if (chartIconToolTip == null) return;
     if (chartIconToolTip.Active)
         chartIconToolTip.Active = false;
     chartIconToolTip = null;
 }
开发者ID:johnmensen,项目名称:TradeSharp,代码行数:7,代码来源:ChartControl.ChartIcon.cs


示例15: populate

        public void populate(List<CaseImage> caseImages)
        {
            this.caseImages = caseImages;
            int squareSize=maxSquareSize(caseImages.Count,minSquareSize,flp.Width-scrollBarWidth,flp.Height-scrollBarHeight);

            foreach (CaseImage caseImage in caseImages)
            {
                PictureBox pb = new PictureBox();
                pbList.Add(pb);

                ToolTip tt = new ToolTip();
                tt.SetToolTip(pb, caseImage.caption);

                pb.SizeMode = PictureBoxSizeMode.Zoom;

                pb.Size = new Size(squareSize, squareSize);
                pb.Image = caseImage.image;

                pb.MouseDown += new MouseEventHandler(pb_MouseDown);
                pb.DragEnter += new DragEventHandler(pb_DragEnter);
                pb.DragDrop += new DragEventHandler(pb_DragDrop);
                pb.AllowDrop = true;
                flp.Controls.Add(pb);

            }
        }
开发者ID:pmcheng,项目名称:casemaker,代码行数:26,代码来源:DialogReorder.cs


示例16: TableEnemyMemberControl

			public TableEnemyMemberControl( FormCompass parent ) {

				#region Initialize

				Parent = parent;
				ToolTipInfo = parent.ToolTipInfo;


				ShipName = new ImageLabel();
				ShipName.Anchor = AnchorStyles.Left;
				ShipName.ForeColor = parent.MainFontColor;
				ShipName.ImageAlign = ContentAlignment.MiddleCenter;
				ShipName.Padding = new Padding( 0, 1, 0, 1 );
				ShipName.Margin = new Padding( 2, 0, 2, 0 );
				ShipName.MaximumSize = new Size( 120, 20 );
				ShipName.AutoEllipsis = true;
				ShipName.AutoSize = true;
				ShipName.Cursor = Cursors.Help;
				ShipName.MouseClick += ShipName_MouseClick;

				Equipments = new ShipStatusEquipment();
				Equipments.SuspendLayout();
				Equipments.Anchor = AnchorStyles.Left;
				Equipments.Padding = new Padding( 0, 2, 0, 1 );
				Equipments.Margin = new Padding( 2, 0, 2, 0 );
				Equipments.Size = new Size( 40, 20 );	//checkme: 要る?
				Equipments.AutoSize = true;
				Equipments.ResumeLayout();

				ConfigurationChanged();

				#endregion

			}
开发者ID:silfumus,项目名称:ElectronicObserver,代码行数:34,代码来源:FormCompass.cs


示例17: GridVirtual

		/// <summary>
		/// Grid constructor
		/// </summary>
		public GridVirtual()
		{
			SetStyle(ControlStyles.Selectable, true);
			SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
			SetStyle(ControlStyles.DoubleBuffer, true);
			SetStyle(ControlStyles.SupportsTransparentBackColor, true);
			SetStyle(ControlStyles.ContainerControl, true);

			TabStop = true;
			EnableSort = true;

			m_Rows = CreateRowsObject();
			m_Columns = CreateColumnsObject();

			SelectionMode = GridSelectionMode.Cell;

			//Create the Controller list for the Cells (the order is important because is the same order that the events will be dispatched)
			Controller.AddController(Cells.Controllers.StandardBehavior.Default);
			Controller.AddController(Cells.Controllers.MouseSelection.Default);
			Controller.AddController(Cells.Controllers.CellEventDispatcher.Default);

			m_LinkedControls = new LinkedControlsList(this);

			//ToolTip
			toolTip = new System.Windows.Forms.ToolTip();
			ToolTipText = "";
		}
开发者ID:js1987,项目名称:openpetragit,代码行数:30,代码来源:GridVirtual.cs


示例18: OnLoad

        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);
            uniqueInstanceName = $"{Environment.MachineName}-{Handle}";
            client = new XDMessagingClient().WithAmazonSettings(RegionEndPoint.EUWest1);
            if (!client.HasValidAmazonSettings())
            {
                MessageBox.Show("Azazon AWS crendentials not set. Enter your credentials in the app.config.",
                    "Missing AWS Crendentials",
                    MessageBoxButtons.OK,
                    MessageBoxIcon.Warning);

                propagateCheck.CheckState = CheckState.Unchecked;
                propagateCheck.Enabled = false;
                mailRadio.Enabled = false;
            }

            var tooltips = new ToolTip();
            tooltips.SetToolTip(sendBtn, "Broadcast message on Channel 1\r\nand Channel2");
            tooltips.SetToolTip(groupBox1, "Choose which channels\r\nthis instance will\r\nlisten on");
            tooltips.SetToolTip(Mode, "Choose which mode\r\nto use for sending\r\nand receiving");

            UpdateDisplayText(
                "Launch multiple instances of this application to demo interprocess communication. Run multiple instances on different machines to demo network propogation.\r\n",
                Color.Gray);

            Text += $" - {uniqueInstanceName}";

            InitializeMode(XDTransportMode.HighPerformanceUI);

            var message = $"{uniqueInstanceName} has joined";
            broadcast.SendToChannel("Status", message);
        }
开发者ID:TheCodeKing,项目名称:XDMessaging.Net,代码行数:33,代码来源:Messenger.cs


示例19: AjouterCommandeAchat

        public AjouterCommandeAchat(string cma_code, CommandesAchat ca,Accueil ac)
        {
            InitializeComponent();
            this.ca = ca;
            this.ac = ac;
            tbCodeCommA.Text = cma_code;

            ToolTip t = new ToolTip();

            t.ShowAlways = true;
            t.SetToolTip(tbCP, "Insertion des numéros uniquement.");

            t.ShowAlways = true;
            t.SetToolTip(tbFixe, "Insertion des numéros uniquement.");

            t.ShowAlways = true;
            t.SetToolTip(tbMobile, "Insertion des numéros uniquement.");

            t.ShowAlways = true;
            t.SetToolTip(tbFax, "Insertion des numéros uniquement.");

            t.ShowAlways = true;
            t.SetToolTip(textBox7, "Insertion des numéros uniquement.");

            t.ShowAlways = true;
            t.SetToolTip(pictureBox3, "Ajouter");

            t.ShowAlways = true;
            t.SetToolTip(pictureBox4, "Modifier");

            t.ShowAlways = true;
            t.SetToolTip(pictureBox5, "Supprimer");
        }
开发者ID:judaHa,项目名称:dotNETApplications,代码行数:33,代码来源:AjouterCommandeAchat.cs


示例20: agregarDeudaToolStripMenuItem_Click

 private void agregarDeudaToolStripMenuItem_Click(object sender, EventArgs e)
 {
     string id = "";
     foreach (grilla aux in laux)
     {
         if (aux.Columna == col && aux.Fila == ro)
         {
             id = aux.Id;
         }
     }
     Deuda frm = new Deuda(id);
     frm.ShowDialog();
     pnlContainer.Controls.Clear();
     string cmdtest = "select deuda, descripcion, idturnos from turnos t inner join clientes c on t.idcliente = c.idclientes where deuda > 0";
     DataTable dt = new DataTable();
     dt = oacceso.leerDatos(cmdtest);
     foreach (DataRow dr in dt.Rows)
     {
         Button tmpButton = new Button();
         string nombre = Convert.ToString(dr["descripcion"]) + " " + Convert.ToString(dr["deuda"]);
         string name = Convert.ToString(dr["idturnos"]);
         System.Windows.Forms.ToolTip ToolTip1 = new System.Windows.Forms.ToolTip();
         ToolTip1.SetToolTip(tmpButton, nombre);
         tmpButton.Name = name;
         tmpButton.Text = nombre;
         tmpButton.Font = new Font("Verdana", 6, FontStyle.Bold);
         tmpButton.Size = new Size(132, 23);
         tmpButton.BackColor = Color.GreenYellow;
         tmpButton.Click += new System.EventHandler(this.manejador_de_evento_botones_generados);
         pnlContainer.Controls.Add(tmpButton);
     }
 }
开发者ID:echemdq,项目名称:Centro-Estetica,代码行数:32,代码来源:Turnero.cs



注:本文中的System.Windows.Forms.ToolTip类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Forms.TrackBar类代码示例发布时间:2022-05-26
下一篇:
C# Forms.ToolStripTextBox类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap