本文整理汇总了C#中System.Windows.Forms.ToolTip.SetToolTip方法的典型用法代码示例。如果您正苦于以下问题:C# ToolTip.SetToolTip方法的具体用法?C# ToolTip.SetToolTip怎么用?C# ToolTip.SetToolTip使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Windows.Forms.ToolTip
的用法示例。
在下文中一共展示了ToolTip.SetToolTip方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: SetToolTip
public void SetToolTip(ref ToolTip toolTip, string groupTypeName)
{
// TODO old implementation has textBox tooltips that don't work
toolTip.SetToolTip(labelQuick, String.Format(International.GetText("Form_Settings_ToolTip_BenchmarkTimeLimits"), International.GetText("Quick"), groupTypeName) + ".");
toolTip.SetToolTip(labelStandard, String.Format(International.GetText("Form_Settings_ToolTip_BenchmarkTimeLimits"), International.GetText("Standard"), groupTypeName) + ".");
toolTip.SetToolTip(labelPrecise, String.Format(International.GetText("Form_Settings_ToolTip_BenchmarkTimeLimits"), International.GetText("Standard"), groupTypeName) + ".");
}
示例2: Form1
public Form1()
{
InitializeComponent();
ToolTip Dica = new ToolTip();
Dica.AutoPopDelay = 5000;
Dica.InitialDelay = 1000;
Dica.ReshowDelay = 500;
Dica.ShowAlways = true;
Dica.SetToolTip(YMD, "Adiciona AAAAMMDD ao final do arquivo extraido");
Dica.SetToolTip(Permissoes, "Adiciona as permissões de Objetos ao DACPAC");
Dica.SetToolTip(AbrirDiretorio, "Após a geração abrir a pasta");
Dica.SetToolTip(LocalSqlPackage, "Clique 2x para localizar o SqlPackage.exe");
Dica.SetToolTip(MultiExtrator, "Habilitar para extração 1...1 (máquinas lentas)");
#pragma warning disable CS0618 // Type or member is obsolete
string UltimoLocalSqlPackage = ConfigurationSettings.AppSettings["UltimoLocalSqlPackage"]; //1.5
#pragma warning restore CS0618 // Type or member is obsolete
LocalizarSqlPackage.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.ProgramFilesX86) + "\\Microsoft SQL Server\\110\\DAC\\bin\\SqlPackage.exe" + "\""; //1.5
if (UltimoLocalSqlPackage == "") //1.5
{
LocalSqlPackage.Text = "\"" + Environment.GetFolderPath(Environment.SpecialFolder.ProgramFilesX86) + "\\Microsoft SQL Server\\110\\DAC\\bin\\SqlPackage.exe" + "\""; //1.5
}
else
{
LocalSqlPackage.Text = UltimoLocalSqlPackage; //1.5
}
}
示例3: MainForm
public MainForm()
{
InitializeComponent();
loadSetting();
SqlCon();
initStyle();
cbFactory.SelectedIndex = 0;
metroTabControl1.SelectedIndex = 0;
btnCamDisCon.Enabled = false;
btnCamCon.Enabled = true;
if (ApplicationDeployment.IsNetworkDeployed)
{
lbVersion.Text = ApplicationDeployment.CurrentDeployment.CurrentVersion.ToString();
}
ToolTip toolTip1 = new ToolTip();
toolTip1.AutoPopDelay = 1000;
toolTip1.InitialDelay = 1000;
toolTip1.ReshowDelay = 500;
toolTip1.ShowAlways = true;
toolTip1.SetToolTip(this.btnStartPrint, "Print Start");
toolTip1.SetToolTip(this.btnRestartPrint, "Print Restart");
toolTip1.SetToolTip(this.btnHoldPrint, "Print Hold");
toolTip1.SetToolTip(this.btnCancelPrint, "Print Cancel");
}
示例4: msgae_Load
private void msgae_Load(object sender, EventArgs e)
{
System.Windows.Forms.ToolTip ToolTip1 = new System.Windows.Forms.ToolTip();
ToolTip1.SetToolTip(this.msgaeAddBtn, "This will add the message to the server based on the information entered above.");
ToolTip1.SetToolTip(this.msgaeEditBtn, "This will edit the message on the server based on the information listed above.");
ToolTip1.SetToolTip(this.msgaeCloseBtn, "This will take you back to the main menu of the program.");
}
示例5: Accueil
public Accueil()
{
InitializeComponent();
string jour = System.Globalization.CultureInfo.CurrentCulture.TextInfo.ToTitleCase(DateTime.Now.ToString("dddd"));
string nb_jr = DateTime.Now.ToString("dd");
string mois = System.Globalization.CultureInfo.CurrentCulture.TextInfo.ToTitleCase(DateTime.Now.ToString("MMMM"));
string an = DateTime.Now.ToString("yyyy");
string heure = DateTime.Now.ToString("HH");
string min = DateTime.Now.ToString("mm");
string sec = DateTime.Now.ToString("ss");
bg.Tick += (s, e) => { label1.Text = System.Globalization.CultureInfo.CurrentCulture.TextInfo.ToTitleCase(DateTime.Now.ToString("dddd dd MMMM yyyy HH:mm:ss")); };
bg.Interval = 333;
bg.Start();
ToolTip tt1 = new ToolTip();
tt1.ShowAlways = true;
tt1.SetToolTip(pictureBox9, "Calculatrice");
tt1.ShowAlways = true;
tt1.SetToolTip(pictureBox10, "Calendrier");
tt1.ShowAlways = true;
tt1.SetToolTip(pictureBox11, "Réglages");
tt1.ShowAlways = true;
tt1.SetToolTip(pictureBox12, "Quitter");
}
示例6: InitLocale
public void InitLocale(ToolTip toolTip1, string infoLabel, string infoMsg)
{
labelFieldIndicator.Text = infoLabel;
toolTip1.SetToolTip(labelFieldIndicator, infoMsg);
toolTip1.SetToolTip(textBox, infoMsg);
toolTip1.SetToolTip(pictureBox1, infoMsg);
}
示例7: 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,"Повышение ступени реостата");
}
示例8: settings_Load
private void settings_Load(object sender, EventArgs e)
{
ToolTip tt = new ToolTip();
tt.SetToolTip(this.startspeedBox, "Start Speed In Milliseconds");
tt.SetToolTip(this.searchspeedminBox, "Search Speed Minimum In Milliseconds");
tt.SetToolTip(this.searchspeedmaxBox, "Search Speed Maximum In Milliseconds");
tt.SetToolTip(this.autostartBox, "Automatically Start Searching On Program Open");
tt.SetToolTip(this.hidebrowserBox, "Display Browser Window");
tt.SetToolTip(this.mobilesearchesBox, "Mobile Searches Quantity");
tt.SetToolTip(this.desktopsearchesBox, "Desktop Searches Quantity");
tt.SetToolTip(this.autocloseBox, "Automatically Close Bing Bot Upon Completion");
tt.SetToolTip(this.startminimizedBox, "Start Bing Bot Minimized");
tt.SetToolTip(this.searchtypeBox, "Search Type");
autostartBox.DropDownStyle = ComboBoxStyle.DropDownList;
hidebrowserBox.DropDownStyle = ComboBoxStyle.DropDownList;
autocloseBox.DropDownStyle = ComboBoxStyle.DropDownList;
startminimizedBox.DropDownStyle = ComboBoxStyle.DropDownList;
searchtypeBox.DropDownStyle = ComboBoxStyle.DropDownList;
accountsBox.Text = System.IO.File.ReadAllText("accounts.txt");
searchWordsBox.Text = System.IO.File.ReadAllText("words.txt");
startspeedBox.Text = Properties.Settings.Default.startspeed.ToString();
searchspeedminBox.Text = Properties.Settings.Default.searchspeedmin.ToString();
searchspeedmaxBox.Text = Properties.Settings.Default.searchspeedmax.ToString();
autostartBox.Text = Properties.Settings.Default.autostart.ToString();
hidebrowserBox.Text = Properties.Settings.Default.hidebrowser.ToString();
mobilesearchesBox.Text = Properties.Settings.Default.mobilesearches.ToString();
desktopsearchesBox.Text = Properties.Settings.Default.desktopsearches.ToString();
autocloseBox.Text = Properties.Settings.Default.autoclose.ToString();
startminimizedBox.Text = Properties.Settings.Default.startminimized.ToString();
searchtypeBox.Text = Properties.Settings.Default.searchtype;
}
示例9: 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);
}
示例10: CommonInit
/// <summary> Initializes common controls and setups all needed properties. </summary>
private void CommonInit()
{
Options = UnrealControls.XmlHandler.ReadXml<SettableOptions>( Path.Combine( Application.StartupPath, "MemoryProfiler2.ClassGroups.xml" ) );
AppDomain.CurrentDomain.AssemblyResolve += new ResolveEventHandler( CurrentDomain_AssemblyResolve );
ExclusiveListView.ListViewItemSorter = new FColumnSorter();
PopulateClassGroups();
InvertCallgraphViewMenuItem.Checked = Options.InvertCallStacksInCallGraphView;
FilterObjectVMFunctionsMenuItem.Checked = Options.FilterOutObjectVMFunctions;
SelectedMemoryPool = ( EMemoryPool )Options.MemoryPoolFilterState;
UpdatePoolFilterFromSelectedPool();
FCallGraphTreeViewParser.SetProfilerWindow( this );
FCallStackHistoryView.SetProfilerWindow( this );
FExclusiveListViewParser.SetProfilerWindow( this );
FTimeLineChartView.SetProfilerWindow( this );
FHistogramParser.SetProfilerWindow( this );
FMemoryBitmapParser.SetProfilerWindow( this );
FShortLivedAllocationView.SetProfilerWindow( this );
SetupFilteringControls();
ResetFilteringState();
LastResizedSize = Size;
ToolTip DetailsViewTips = new ToolTip();
DetailsViewTips.SetToolTip( DetailsViewStartLabel, "Shows start snapshot detailed information" );
DetailsViewTips.SetToolTip( DetailsViewDiffLabel, "Shows detailed information as a difference between end and start snapshot" );
DetailsViewTips.SetToolTip( DetailsViewEndLabel, "Shows end snapshot detailed information" );
}
示例11: ScrumViewerForm
public ScrumViewerForm(string Area, string SourceFile, string TargetFile)
{
InitializeComponent();
ToolTip tTip = new ToolTip();
tTip.SetToolTip(SDFill1, "Fill SD");
tTip.SetToolTip(SDFill2, "Fill SD");
tTip.SetToolTip(SDFill3, "Fill SD");
tTip.SetToolTip(SDFill4, "Fill SD");
tTip.SetToolTip(SDFill5, "Fill SD");
OuterUpdLayout.HorizontalScroll.Enabled = false;
this.Text = "Scrum Update - " + Area;
_area = Area;
st[0] = SourceFile;
st[1] = TargetFile;
datePicker.MinDate = new DateTime(DateTime.Today.Year, DateTime.Today.Month, 1);
datePicker.MaxDate = DateTime.Today.Month == 12 ? new DateTime(DateTime.Today.Year + 1, 1, 3) : new DateTime(DateTime.Today.Year, DateTime.Today.Month + 1, 3);
datePicker.Value = DateTime.Today;
XcelReadWrite(1);
InitializeValues();
}
示例12: CreateToolTip
private void CreateToolTip()
{
ToolTip toolTip = new ToolTip();
toolTip.ShowAlways = true;
toolTip.SetToolTip(btnPrevious, "Show Page 1");
toolTip.SetToolTip(btnNext, "Show Page 2");
toolTip.SetToolTip(btnEdit, "Modify the Properties of the Selected Layout");
}
示例13: vehicles_Load
private void vehicles_Load(object sender, EventArgs e)
{
System.Windows.Forms.ToolTip ToolTip1 = new System.Windows.Forms.ToolTip();
ToolTip1.SetToolTip(this.vehiclesInstanceText, "Insert the instance ID to spawn all vehicles on.");
ToolTip1.SetToolTip(this.vehiclesSpawnVehiclesBtn, "Click this button to spawn all vehicles on the instance entered above.");
ToolTip1.SetToolTip(this.vehiclesItemBtn, "Get a list of all instance distribution by instance ID.");
ToolTip1.SetToolTip(this.vehiclesBackbtn, "This will take you back to the main menu of the program.");
}
示例14: ScoreControl
/// <summary>
/// Initializes a new instance of the <see cref="ScoreControl"/> class.
/// </summary>
/// <remarks>Documented by Dev05, 2009-04-10</remarks>
public ScoreControl()
{
InitializeComponent();
ToolTip tTip = new ToolTip();
tTip.SetToolTip(colorProgressBarKnown, Resources.LEARNING_MODULE_KNOWLEDGE);
tTip.SetToolTip(labelKnown, Resources.LEARNING_MODULE_KNOWLEDGE);
}
示例15: AddTooltips
private void AddTooltips()
{
ToolTip toolTip = new ToolTip();
toolTip.SetToolTip(applications, "Displays a list process names, of all application on your desktop which have atleast one visible window.");
toolTip.SetToolTip(windows, "Diplays the list of all windows for the selected application.");
toolTip.SetToolTip(windowTabs, "Displays the list all the tabs available in the selected window.");
toolTip.SetToolTip(tabPages, "List of tab pages in the selected tab. ");
}