本文整理汇总了C#中System.Windows.Forms.TrackBar.BringToFront方法的典型用法代码示例。如果您正苦于以下问题:C# TrackBar.BringToFront方法的具体用法?C# TrackBar.BringToFront怎么用?C# TrackBar.BringToFront使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Windows.Forms.TrackBar
的用法示例。
在下文中一共展示了TrackBar.BringToFront方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: SetMonotonicityCoefficientTrackBar
internal void SetMonotonicityCoefficientTrackBar() {
monotoneBar = new TrackBar();
monotoneBar.Location = new Point(400, 0);
monotoneBar.Width = 200;
monotoneBar.Minimum = -100;
monotoneBar.Maximum = 100;
monotoneBar.SmallChange = 1;
Controls.Add(monotoneBar);
monotoneBar.BringToFront();
monotoneBar.ValueChanged += MonotoneBarValueChanged;
monotoneBar.MouseUp += MonotoneBarMouseUp;
}
示例2: Form1_Load
private void Form1_Load(object sender, EventArgs e)
{
MainMap = new GMapControl();
MainMap.MapProvider = GMapProviders.OpenStreetMap;
MainMap.Position = new PointLatLng(50.619900, 26.251617);
MainMap.MinZoom = 3;
MainMap.MaxZoom = 20;
MainMap.Zoom = 9;
MainMap.Dock = DockStyle.Fill;
MainMap.MarkersEnabled = true;
MainMap.PolygonsEnabled = true;
MainMap.RoutesEnabled = true;
MainMap.MouseClick += MainMap_MouseClick;
MainMap.OnMarkerClick += MainMap_OnMarkerClick;
//MainMap.OnPositionChanged += MainMap_OnPositionChanged;
Controls.Add(MainMap);
sl = new TrackBar();
sl.Orientation = Orientation.Vertical;
sl.TickStyle = TickStyle.Both;
sl.TickFrequency = 10;
sl.Maximum = 100;
sl.Minimum = 1;
sl.Value = (int)((MainMap.Zoom - MainMap.MinZoom)/ MainMap.MaxZoom * sl.Maximum);
sl.Height = this.Height / 3;
sl.Width = 50;
sl.Location = new Point(MainMap.Width - sl.Width - 5, MainMap.Height - sl.Height -10);
sl.ValueChanged += sl_ValueChanged;
Controls.Add(sl);
sl.BringToFront();
markersOverlay = new GMapOverlay("markers");
routeOverlay = new GMapOverlay("routes");
isAddMarker = true;
}
示例3: SetEdgeSeparationBar
static void SetEdgeSeparationBar(Form form) {
edgeSeparationTrackBar = new TrackBar();
form.Controls.Add(edgeSeparationTrackBar);
edgeSeparationTrackBar.Location = new System.Drawing.Point(form.MainMenuStrip.Location.X + 400,
form.MainMenuStrip.Location.Y);
edgeSeparationTrackBar.Maximum = 20;
edgeSeparationTrackBar.Value = (int) (0.5*(edgeSeparationTrackBar.Minimum + edgeSeparationTrackBar.Maximum));
edgeSeparationTrackBar.ValueChanged += EdgeSeparationTrackBarValueChanged;
edgeSeparationTrackBar.BringToFront();
form.ResumeLayout();
}
示例4: refreshList
private void refreshList()
{
int c = (int)numericUpDown1.Value;
while (c < Names.Count)
{
Names[c].Dispose();
Names.RemoveAt(c);
Weights[c].Dispose();
Weights.RemoveAt(c);
}
while (c > Names.Count)
{
TextBox box = new TextBox();
box.Parent = panelSubtasks;
box.Left = 10;
box.Top = 25 + 30 * Names.Count;
box.Show();
Names.Add(box);
TrackBar bar = new TrackBar();
bar.Parent = panelSubtasks;
bar.Left = box.Width + 20;
bar.Top = 25 + 30 * Weights.Count;
bar.Width = 200;
bar.Minimum = 0;
bar.Maximum = 100;
bar.Value = 50;
bar.BringToFront();
bar.Show();
bar.Scroll += new System.EventHandler(refreshBars);
Weights.Add(bar);
}
bool b = checkBoxSameName.Checked;
textBoxSubtasksName.Enabled = b;
int i = 1;
foreach (TextBox name in Names)
{
name.Enabled = !b;
if (b) name.Text = textBoxSubtasksName.Text + ' ' + i.ToString();
i++;
}
}