当前位置: 首页>>代码示例>>C#>>正文


C# ToolTip.RemoveAll方法代码示例

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


在下文中一共展示了ToolTip.RemoveAll方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: button1_MouseHover

 private void button1_MouseHover(object sender, EventArgs e)
 {
     ToolTip tt = new ToolTip();
     if (this.project.is_bid_added)
     { tt.SetToolTip(this.button1, "¬ы уже добавили ставку к этому проекту"); }
     else { tt.RemoveAll(); }
 }
开发者ID:mazanuj,项目名称:freelancehunt-windows,代码行数:7,代码来源:frmProjectFullInfo.cs

示例2: RemoveToolTipTest

		public void RemoveToolTipTest ()
		{
			ToolTip myToolTip = new ToolTip ();
			Button myButton = new Button ();
			myToolTip.ShowAlways = true;
			myToolTip.SetToolTip (myButton, "My Button");
			myToolTip.RemoveAll ();
			Assert.AreEqual ("", myToolTip.GetToolTip (myButton), "#Mtd2");
		}
开发者ID:nlhepler,项目名称:mono,代码行数:9,代码来源:ToolTipTest.cs

示例3: Initialize


//.........这里部分代码省略.........
            toolTipVia.SetToolTip(viaButton, "Drag icon to map to add a through location");
            this.Controls.Add(viaButton);

            endButton.Location = new Point(55, 63);
            endButton.Size = new Size(40, 32);
            //endButton.Click += (object o, EventArgs ea) => { map.BMode = ButtonMode.To;};
            endButton.BackgroundImage = (Bitmap)resourcemanager.GetObject("end");
            endButton.FlatStyle = FlatStyle.Flat;
            endButton.FlatAppearance.BorderColor = backColor;
            endButton.FlatAppearance.MouseOverBackColor = backColor;
            endButton.FlatAppearance.MouseDownBackColor = backColor;
            toolTipEnd.SetToolTip(endButton, "Drag icon to map to set your end location");
            this.Controls.Add(endButton);

            checkLabel.Location = new Point(309, 8);
            checkLabel.Text = "Enable/Disable";
            checkLabel.Font = new Font("Microsoft Sans Serif", 10);
            checkLabel.Size = new Size(130, 20);
            this.Controls.Add(checkLabel);

            bikeCheck.Location = new Point(309, 29);
            bikeCheck.Size = new Size(34, 34);
            bikeCheck.Appearance = Appearance.Button;
            bikeCheck.BackgroundImage = (Bitmap)resourcemanager.GetObject("bike_check");
            bikeCheck.FlatStyle = FlatStyle.Flat;
            bikeCheck.FlatAppearance.CheckedBackColor = Color.FromArgb(224, 224, 224);
            bikeCheck.Checked = true;
            bikeCheck.FlatAppearance.CheckedBackColor = Color.LightGreen;
            bikeCheck.BackColor = Color.Red;
            bikeCheck.CheckedChanged += (object o, EventArgs ea) => { map.UpdateRoute(); };
            toolTipCheckBike.SetToolTip(bikeCheck, "Disable Bicycles");
            bikeCheck.CheckedChanged += (object o, EventArgs ea) =>
            {
                toolTipCheckBike.RemoveAll();
                if (bikeCheck.Checked)
                    toolTipCheckBike.SetToolTip(bikeCheck, "Disable Bicycles");
                else
                    toolTipCheckBike.SetToolTip(bikeCheck, "Enable Bicycles");
            };
            this.Controls.Add(bikeCheck);

            carCheck.Location = new Point(354, 29);
            carCheck.Size = new Size(34, 34);
            carCheck.Appearance = Appearance.Button;
            carCheck.BackgroundImage = (Bitmap)resourcemanager.GetObject("car_check");
            carCheck.FlatStyle = FlatStyle.Flat;
            carCheck.FlatAppearance.CheckedBackColor = Color.FromArgb(224, 224, 224);
            carCheck.Checked = true;
            carCheck.FlatAppearance.CheckedBackColor = Color.LightGreen;
            carCheck.BackColor = Color.Red;
            carCheck.CheckedChanged += (object o, EventArgs ea) => { map.UpdateRoute(); };
            toolTipCheckCar.SetToolTip(carCheck, "Disable Cars");
            carCheck.CheckedChanged += (object o, EventArgs ea) =>
            {
                toolTipCheckCar.RemoveAll();
                if (carCheck.Checked)
                    toolTipCheckCar.SetToolTip(carCheck, "Disable Cars");
                else
                    toolTipCheckCar.SetToolTip(carCheck, "Enable Cars");
            };
            this.Controls.Add(carCheck);

            ptCheck.Location = new Point(399, 29);
            ptCheck.Size = new Size(34, 34);
            ptCheck.Appearance = Appearance.Button;
            ptCheck.BackgroundImage = (Bitmap)resourcemanager.GetObject("ov");
开发者ID:CPutz,项目名称:MyMap,代码行数:67,代码来源:MainForm.cs

示例4: toolTipReset

 public void toolTipReset(ToolTip tt)
 {
     tt.RemoveAll();
 }
开发者ID:ishanagrawal,项目名称:sudoku,代码行数:4,代码来源:Features.cs

示例5: HideErrorBalloon

 private void HideErrorBalloon(ToolTip toolTip, Label inputLabel) {
     toolTip.RemoveAll();
     toolTip.Hide(this);
     inputLabel.ForeColor = SystemColors.ControlText;
 }
开发者ID:wenh123,项目名称:PTVS,代码行数:5,代码来源:PythonInterpreterOptionsControl.cs

示例6: removeExpenseCategoryToolTip

        private void removeExpenseCategoryToolTip(ToolTip expenseCategoriesTip, TextBox autoText)
        {
            expenseCategoriesTip.RemoveAll();

            //Creates a blank autocomplete collection
            autoText.AutoCompleteMode = AutoCompleteMode.Suggest;
            autoText.AutoCompleteSource = AutoCompleteSource.CustomSource;
            AutoCompleteStringCollection dataCollection = new AutoCompleteStringCollection();

            //Associates it with the textbox to remove any autocorrect fields
            autoCompleteItems(dataCollection, false);
            autoText.AutoCompleteCustomSource = dataCollection;
        }
开发者ID:TanayParikh,项目名称:MonetaFMS,代码行数:13,代码来源:ExpenseModule.cs

示例7: displayExpenseCategorizationInfo

        //Pre: The DGV Control showing event arg. Provides access to the current textbox in the dgv expenses.
        //Post: Fills expense categorization textbox with autocomplete values.
        //Description: If the current textbox is in the fifth (exp. categorization) column, fills it up with autcomplete values.
        public void displayExpenseCategorizationInfo(DataGridViewEditingControlShowingEventArgs e)
        {
            //Creates a tool tip to allow the user to see all category options.
            ToolTip expenseCategoriesTip = new ToolTip();

            //Casts the event args as a textbox.
            TextBox autoText = e.Control as TextBox;

            //Removes all existing tool tips.
            expenseCategoriesTip.RemoveAll();

            //Ensures the box isn't null
            if (autoText != null)
            {
                associateToolTips(expenseCategoriesTip, autoText);
            }
        }
开发者ID:TanayParikh,项目名称:MonetaFMS,代码行数:20,代码来源:ExpenseModule.cs

示例8: Clear

 public static void Clear(ToolTip tp)
 {
     tp.RemoveAll();
 }
开发者ID:jollywho,项目名称:LFI,代码行数:4,代码来源:Error_Handle.cs

示例9: ClearErrorProvider

 private void ClearErrorProvider(ErrorProvider activeErrorProvider, ToolTip activeToolTip)
 {
     activeErrorProvider.Clear();
     activeToolTip.RemoveAll();
 }
开发者ID:JamisonHarris,项目名称:TurboscanNG,代码行数:5,代码来源:IndexPanel.cs


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