當前位置: 首頁>>代碼示例>>C#>>正文


C# Forms.ToolTip類代碼示例

本文整理匯總了C#中System.Windows.Forms.ToolTip的典型用法代碼示例。如果您正苦於以下問題:C# ToolTip類的具體用法?C# ToolTip怎麽用?C# ToolTip使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


ToolTip類屬於System.Windows.Forms命名空間,在下文中一共展示了ToolTip類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的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


注:本文中的System.Windows.Forms.ToolTip類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。