本文整理汇总了C#中ListBox.BringToFront方法的典型用法代码示例。如果您正苦于以下问题:C# ListBox.BringToFront方法的具体用法?C# ListBox.BringToFront怎么用?C# ListBox.BringToFront使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ListBox
的用法示例。
在下文中一共展示了ListBox.BringToFront方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: RemoteSwitchGUI
public RemoteSwitchGUI()
{
Text = "Remote Switch GUI 1.0.1";
Size = new Size(300, 500);
MinimumSize = new Size(260, 200);
panel = new Panel();
panel.Parent = this;
panel.Height = 40;
panel.Dock = DockStyle.Top;
listBox = new ListBox();
listBox.Parent = this;
listBox.Dock = DockStyle.Fill;
listBox.BringToFront();
buttonAOn = CreateButton("A On", 10, (1 << 0) | (1 << 2));
buttonAOff = CreateButton("A Off", 70, (1 << 0) | (1 << 3));
buttonBOn = CreateButton("B On", 130, (1 << 1) | (1 << 2));
buttonBOff = CreateButton("B Off", 190, (1 << 1) | (1 << 3));
Load += delegate(object sender, System.EventArgs e)
{
Thread thread = new Thread(delegate() { Connect(); });
thread.IsBackground = true;
thread.Start();
};
}