Advertisement
Advertisement
| 05.12.2008 at 06:58AM PDT, ID: 23394538 |
|
[x]
Attachment Details
|
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: |
Dim iconFX As PictureBox
Dim nameText As Label
Dim nuPanel As Panel
Dim vDx As Integer = 0
nuPanel = New Panel
nuPanel.Location = New Point(0, CInt(Me.Height / CDbl(15)))
nuPanel.Name = "nowPanel"
nuPanel.Height = CInt(Me.Height / CDbl(6))
nuPanel.Width = Me.Width
nuPanel.BackColor = Color.LightGreen
nuPanel.BackgroundImage = New Bitmap(Me.GetType, "ProcSpirals.png")
nuPanel.BackgroundImageLayout = ImageLayout.Tile
nuPanel.BorderStyle = BorderStyle.None
nuPanel.Anchor = AnchorStyles.Left Or AnchorStyles.Right Or AnchorStyles.Top
nameText = New Label
nameText.Name = "mainID"
nameText.BackColor = Color.Transparent
nameText.Anchor = AnchorStyles.Right Or AnchorStyles.Bottom
nameText.AutoSize = True
nameText.BorderStyle = BorderStyle.None
nameText.Text = "Main"
nameText.Location = New Point(((nuPanel.Width - nameText.PreferredSize.Width) - 13), (nuPanel.Height - nameText.PreferredSize.Height))
nuPanel.Controls.Add(nameText)
iconFX = New PictureBox
iconFX.BackgroundImage = New Bitmap(Me.GetType, "EDM_Generic.ico")
iconFX.BackgroundImageLayout = ImageLayout.Stretch
iconFX.Size = New Size(60, 60)
iconFX.Name = "ExitIcon"
iconFX.Text = "Exit"
iconFX.Location = New Point(10, 10)
iconFX.BorderStyle = BorderStyle.FixedSingle
AddHandler iconFX.MouseDown, AddressOf specMouseDown
AddHandler iconFX.MouseMove, AddressOf specMouseMove
AddHandler iconFX.DoubleClick, AddressOf icon_Exit_DoubleClick
nuPanel.Controls.Add(iconFX)
vDx = (nuPanel.Location.Y + nuPanel.Height)
Me.Controls.Add(nuPanel)
|