当前位置: 首页>>代码示例>>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;未经允许,请勿转载。