本文整理汇总了C#中System.Windows.Forms.VScrollBar.BringToFront方法的典型用法代码示例。如果您正苦于以下问题:C# VScrollBar.BringToFront方法的具体用法?C# VScrollBar.BringToFront怎么用?C# VScrollBar.BringToFront使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Windows.Forms.VScrollBar
的用法示例。
在下文中一共展示了VScrollBar.BringToFront方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ObjectsList
public ObjectsList(ObjectsPanel panel, PictureBox pb, GameWorld world, int x, int y, int width, int height,
CheckTextButton showWar, CheckTextButton showCharacters, CheckTextButton showNpc, CheckTextButton showDrop,
CharacterToolTip characterToolTip, NpcToolTip npcToolTip)
{
this.panel = panel;
this.pb = pb;
this.x = x;
this.y = y;
this.width = width;
this.height = height;
this.world = world;
this.world.L2LiveObjectUpdate += world_L2LiveObjectUpdate;
this.world.AddCharacter += (s, e) => { world_ObjectsChanged(); };
//this.world.AddDrop += (s, e) => { world_ObjectsChanged(); };
this.world.AddNpc += (s, e) => { world_ObjectsChanged(); };
this.world.DeleteCharacter += (s, e) => { world_ObjectsChanged(); };
//this.world.DeleteDrop += (s, e) => { world_ObjectsChanged(); };
this.world.DeleteNpc += (s, e) => { world_ObjectsChanged(); };
this.hoveredIndex = -1;
this.showWar = showWar;
this.showCharacters = showCharacters;
this.showNpc = showNpc;
this.showDrop = showDrop;
this.objList = new List<L2Object>();
this.characterToolTip = characterToolTip;
this.npcToolTip = npcToolTip;
scroll = new VScrollBar();
scroll.Height = height - 1;
scroll.Left = pb.Left + x + width - scroll.Width;
scroll.Top = pb.Top + y + 1;
scroll.LargeChange = height / itemHeight;
pb.FindForm().Controls.Add(scroll);
scroll.BringToFront();
scroll.ValueChanged += scroll_ValueChanged;
this.clip = new Rectangle(x + 1, y + 1, width - 2 - scroll.Width, height - 2);
pb.MouseMove += pb_MouseMove;
pb.MouseLeave += pb_MouseLeave;
pb.MouseClick += pb_MouseClick;
pb.FindForm().MouseWheel += ObjectsList_MouseWheel;
hpBar = new MiniHPBar(72);
hpBar5 = new Mini5HPBar(72);
mpBar5 = new Mini5MPBar(72);
}
示例2: AccountList
public AccountList(Control parent, int left, int top, int width, int height)
{
this.left = left;
this.top = top;
this.width = width;
this.height = height;
pb = new PictureBox();
pb.Left = left;
pb.Top = top;
pb.Width = width;
pb.Height = height;
parent.Controls.Add(pb);
pb.Paint += pb_Paint;
pb.MouseUp += pb_MouseUp;
scroll = new VScrollBar();
scroll.Left = left + width - scroll.Width - 1;
scroll.Top = top + 1;
scroll.Height = height - 2;
RefreshScroll();
parent.Controls.Add(scroll);
scroll.BringToFront();
}