Advertisement
Advertisement
| 05.15.2008 at 06:17AM PDT, ID: 23404942 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
|
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
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: 44: 45: |
[ Used In >other< Sub: ]
...
Add_Menu_Icon(nuPanel, "ExitIcon", New Bitmap(Me.GetType, "EDM_Generic.ico"), "Exit", AddressOf icon_Exit_DoubleClick)
...
[ Definitions, Offending Code: ]
Private Delegate Sub iconDoubleClickHandler(ByVal sender As Object, ByVal e As System.EventArgs)
Private Sub Add_Menu_Icon(ByRef thisPanel As Panel, ByVal iconName As String, ByRef iconPicture As Image, ByVal iconText As String, ByRef iconDblClk As iconDoubleClickHandler)
Dim iconFX As PictureBox
Dim iconTX As Label
iconFX = New PictureBox
iconFX.BackgroundImage = iconPicture
iconFX.BackgroundImageLayout = ImageLayout.Stretch
iconFX.Size = New Size(60, 60)
iconFX.Name = iconName
iconFX.Location = New Point(10, 10) ' TODO: Change to reflect positions...
iconFX.BorderStyle = BorderStyle.FixedSingle
AddHandler iconFX.MouseDown, AddressOf specMouseDown
AddHandler iconFX.MouseMove, AddressOf specMouseMove
AddHandler iconFX.LocationChanged, AddressOf specMsgMove
AddHandler iconFX.DoubleClick, iconDblClk
iconTX = New Label
iconTX.Name = iconName & "Text"
iconTX.BackColor = Color.Transparent
iconTX.AutoSize = False
iconTX.Font = New Font("Arial", 8.5, FontStyle.Regular, GraphicsUnit.Point)
iconTX.Width = iconFX.Width
iconTX.TextAlign = ContentAlignment.TopCenter
iconTX.BorderStyle = BorderStyle.None
iconTX.Text = iconText
iconTX.Location = New Point(iconFX.Location.X, (iconFX.Location.Y + iconFX.Size.Height))
iconFX.Tag = iconTX
thisPanel.Controls.Add(iconFX)
thisPanel.Controls.Add(iconTX)
End Sub
|