本文整理汇总了C#中System.Windows.Forms.LinkLabel.Hide方法的典型用法代码示例。如果您正苦于以下问题:C# LinkLabel.Hide方法的具体用法?C# LinkLabel.Hide怎么用?C# LinkLabel.Hide使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Windows.Forms.LinkLabel
的用法示例。
在下文中一共展示了LinkLabel.Hide方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: HideLinkShowText
void HideLinkShowText(LinkLabel link, TextBox text, TimeSpan length)
{
text.Text = App.TimeToStringHHMM(length);
text.SelectAll();
text.Show();
text.Focus();
link.Hide();
}
示例2: AppErrorDialog
//.........这里部分代码省略.........
tablePanel.SetRow(grid, 4);
tablePanel.SetColumn(grid, 0);
bool isGridColumnResized = false;
grid.Resize += (s, e) =>
{
if (!isGridColumnResized)
{
isGridColumnResized = true;
// Source: http://stackoverflow.com/a/14475276/143684
FieldInfo fi = grid.GetType().GetField("gridView", BindingFlags.Instance | BindingFlags.NonPublic);
if (fi != null)
{
Control view = fi.GetValue(grid) as Control;
if (view != null)
{
MethodInfo mi = view.GetType().GetMethod("MoveSplitterTo", BindingFlags.Instance | BindingFlags.NonPublic);
if (mi != null)
{
mi.Invoke(view, new object[] { 170 });
}
mi = view.GetType().GetMethod("set_GrayTextColor", BindingFlags.Instance | BindingFlags.NonPublic);
if (mi != null)
{
mi.Invoke(view, new object[] { Color.Black });
}
}
}
}
};
detailsLabel.LinkClicked += (s, e) =>
{
detailsLabel.Hide();
this.Height += 300;
this.Top -= Math.Min(this.Top - 4, 150);
tablePanel.RowStyles[4].Height = 350;
grid.Visible = true;
};
buttonsPanel = new TableLayoutPanel();
buttonsPanel.AutoSize = true;
buttonsPanel.AutoSizeMode = AutoSizeMode.GrowAndShrink;
buttonsPanel.BackColor = SystemColors.Control;
buttonsPanel.Dock = DockStyle.Fill;
buttonsPanel.Margin = new Padding();
buttonsPanel.Padding = new Padding(10, 10, 10, 10);
buttonsPanel.ColumnCount = 4;
buttonsPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 100));
buttonsPanel.ColumnStyles.Add(new ColumnStyle(SizeType.AutoSize));
buttonsPanel.ColumnStyles.Add(new ColumnStyle(SizeType.AutoSize));
buttonsPanel.ColumnStyles.Add(new ColumnStyle(SizeType.AutoSize));
tablePanel.Controls.Add(buttonsPanel);
tablePanel.SetRow(buttonsPanel, 5);
tablePanel.SetColumn(buttonsPanel, 0);
sendCheckBox = new CheckBox();
sendCheckBox.Anchor = AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Bottom;
sendCheckBox.AutoSize = true;
sendCheckBox.Enabled = FL.CanSubmitLog;
if (sendCheckBox.Enabled)
{
sendCheckBox.Checked = true;
}
sendCheckBox.FlatStyle = FlatStyle.System;
sendCheckBox.Margin = new Padding();