Poznámka
Přístup k této stránce vyžaduje autorizaci. Můžete se zkusit přihlásit nebo změnit adresáře.
Přístup k této stránce vyžaduje autorizaci. Můžete zkusit změnit adresáře.
Můžete nastavit řetězec ToolTip v kódu nebo v návrháři Windows Forms ve Visual Studio. Další informace o komponentě ToolTip naleznete v tématu ToolTip Component Overview.
Programové nastavení ToolTipu
Přidejte ovládací prvek, který zobrazí nápovědu (ToolTip).
Použijte SetToolTip metodu komponenty ToolTip.
' In this example, Button1 is the control to display the ToolTip. ToolTip1.SetToolTip(Button1, "Save changes")
// In this example, button1 is the control to display the ToolTip. toolTip1.SetToolTip(button1, "Save changes");
// In this example, button1 is the control to display the ToolTip. toolTip1->SetToolTip(button1, "Save changes");
Nastavit popisek v návrháři
Ve Visual Studio přidejte do formuláře komponentu ToolTip.
Vyberte ovládací prvek, který zobrazí popis, nebo ho přidejte do formuláře.
V okně Vlastnosti nastavte popis tlačítka na popisku 1 hodnotu odpovídajícího řetězce textu.
Jak programově odebrat ToolTip
Použijte SetToolTip metodu komponenty ToolTip.
' In this example, Button1 is the control displaying the ToolTip. ToolTip1.SetToolTip(Button1, Nothing)
// In this example, button1 is the control displaying the ToolTip. toolTip1.SetToolTip(button1, null);
// In this example, button1 is the control displaying the ToolTip. toolTip1->SetToolTip(button1, NULL);
Odebrat bublinovou nápovědu v návrháři
Ve Visual Studio vyberte ovládací prvek, který zobrazuje nápovědu.
V okně Vlastnosti odstraňte text v popisku vtoolTip1 .
Viz také
- Přehled komponent
ToolTip - Jak na to: Změna zpoždění komponenty Windows Forms ToolTip
- Komponenta ToolTip
.NET Desktop feedback