本文整理汇总了C#中System.Windows.Forms.LinkLabel.BringToFront方法的典型用法代码示例。如果您正苦于以下问题:C# LinkLabel.BringToFront方法的具体用法?C# LinkLabel.BringToFront怎么用?C# LinkLabel.BringToFront使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Windows.Forms.LinkLabel
的用法示例。
在下文中一共展示了LinkLabel.BringToFront方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: createHelpLinkLabel
/// <summary>
/// Generate a LinkLabel to the right of a control which will open the corresponding Wiki help page for that control.
/// </summary>
public static void createHelpLinkLabel(Control control, string helpKey)
{
try
{
LinkLabel lnk = new LinkLabel();
lnk.Text = "?";
lnk.Location = new System.Drawing.Point(control.Left + control.Width + 1, control.Top);
lnk.Tag = helpKey;
lnk.Width = 16;
lnk.Height = 16;
lnk.Font = new System.Drawing.Font("Courier New", 10);
control.Parent.Controls.Add(lnk);
lnk.BringToFront();
lnk.LinkClicked += new LinkLabelLinkClickedEventHandler(lnk_LinkClicked);
}
catch (Exception ex)
{
Eh.GlobalErrorHandler(ex);
}
}
示例2: streamingToolStripMenuItem_Click
private void streamingToolStripMenuItem_Click(object sender, EventArgs e)
{
frec.pictureBoxFrameGrabber = this.picBox_Original;
frec.StartStreaming();
this.panel_mainPanel.Enabled = false;
LinkLabel llablStopStreaming = new LinkLabel();
llablStopStreaming.Text = "Stop Streaming";
llablStopStreaming.Location = new Point(137, 480);
this.Controls.Add(llablStopStreaming);
llablStopStreaming.BringToFront();
llablStopStreaming.BackColor = Color.Black;
llablStopStreaming.Font = linkLabel1.Font;
llablStopStreaming.Click += new EventHandler(llablStopStreaming_Click);
llablStopStreaming.AutoSize = true;
}
示例3: InitBookmarks
private void InitBookmarks(DataTable dt)
{
var letters = dt.AsEnumerable()
.Select(c => c["FullName"].ToString().Substring(0, 1))
.GroupBy(r => r)
.Select(x => x.Key).ToList();
Point prevlocation = new Point(12, 27);
foreach (var letter in letters)
{
LinkLabel newLink = new LinkLabel();
newLink.Location = new Point(
prevlocation.X, prevlocation.Y + 15);
prevlocation = newLink.Location;
newLink.Text = letter;
newLink.Width = 15;
newLink.Height = 13;
this.Controls.Add(newLink);
newLink.BringToFront();
newLink.Click += new System.EventHandler(this.filterDGView);
}
this.ResumeLayout(false);
this.PerformLayout();
}