本文整理汇总了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(); }
}
示例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");
}
示例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");
示例4: toolTipReset
public void toolTipReset(ToolTip tt)
{
tt.RemoveAll();
}
示例5: HideErrorBalloon
private void HideErrorBalloon(ToolTip toolTip, Label inputLabel) {
toolTip.RemoveAll();
toolTip.Hide(this);
inputLabel.ForeColor = SystemColors.ControlText;
}
示例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;
}
示例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);
}
}
示例8: Clear
public static void Clear(ToolTip tp)
{
tp.RemoveAll();
}
示例9: ClearErrorProvider
private void ClearErrorProvider(ErrorProvider activeErrorProvider, ToolTip activeToolTip)
{
activeErrorProvider.Clear();
activeToolTip.RemoveAll();
}