Click here to Skip to main content
15,894,405 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Need sample code for developing ftp client using Infragistics controls Pin
Dave Kreskowiak16-Dec-04 3:20
mveDave Kreskowiak16-Dec-04 3:20 
GeneralAbout Windows media player Pin
santosh jaiswal 200415-Dec-04 18:16
santosh jaiswal 200415-Dec-04 18:16 
GeneralRe: About Windows media player Pin
Dave Kreskowiak16-Dec-04 3:14
mveDave Kreskowiak16-Dec-04 3:14 
GeneralApplication Crash at Err Raise when Type Mismatch occured Pin
shinay15-Dec-04 12:33
shinay15-Dec-04 12:33 
GeneralRe: Application Crash at Err Raise when Type Mismatch occured Pin
Tom John16-Dec-04 1:51
Tom John16-Dec-04 1:51 
GeneralRe: Application Crash at Err Raise when Type Mismatch occured Pin
Dave Kreskowiak16-Dec-04 3:00
mveDave Kreskowiak16-Dec-04 3:00 
GeneralPopupMenu BMPs... Pin
TAlvord15-Dec-04 10:47
TAlvord15-Dec-04 10:47 
GeneralRe: PopupMenu BMPs... Pin
Tom John15-Dec-04 22:40
Tom John15-Dec-04 22:40 
TAlvord@kavlico.com wrote:
How do you add BMPs to a PopupMenu?

You could just inherit from the menuitem class, set the OwnerDraw = True and override the OnDrawItem method?

Public Class MyMenuItem
    Inherits System.Windows.Forms.MenuItem

    Private mImage As Image
    Public Property Image() As Image
        Get
            Return mImage
        End Get
        Set(ByVal Value As Image)
            mImage = Value
        End Set
    End Property

    Public Sub New()

        MyBase.new()
        Me.OwnerDraw = True

    End Sub

    Protected Overrides Sub OnDrawItem(ByVal e As DrawItemEventArgs)

        'Draw image and text here

        MyBase.OnDrawItem(e)
    End Sub

End Class
Hope this helps

Tom
GeneralSwitching beteween forms in vb.net Pin
Ryan Coleman15-Dec-04 10:34
Ryan Coleman15-Dec-04 10:34 
GeneralRe: Switching beteween forms in vb.net Pin
Mekong River15-Dec-04 11:10
Mekong River15-Dec-04 11:10 
GeneralRe: Switching beteween forms in vb.net Pin
Zenly15-Dec-04 11:24
Zenly15-Dec-04 11:24 
GeneralRe: Switching beteween forms in vb.net Pin
Ryan Coleman15-Dec-04 13:23
Ryan Coleman15-Dec-04 13:23 
GeneralTest a connection to SQL Server Pin
marclenoir200515-Dec-04 10:18
marclenoir200515-Dec-04 10:18 
GeneralRe: Test a connection to SQL Server Pin
jonathan1517-Dec-04 2:56
jonathan1517-Dec-04 2:56 
GeneralInternal Domain Email Issues Pin
CitizenSoldier15-Dec-04 9:35
CitizenSoldier15-Dec-04 9:35 
GeneralFiles Closed but Not Really -- Database Error 16040 Pin
aubndez15-Dec-04 5:23
aubndez15-Dec-04 5:23 
GeneralForm creation crisis!!! Pin
carlos_rocha15-Dec-04 4:33
carlos_rocha15-Dec-04 4:33 
GeneralRe: Form creation crisis!!! Pin
Dennis C. Dietrich15-Dec-04 4:49
Dennis C. Dietrich15-Dec-04 4:49 
GeneralRe: Form creation crisis!!! Pin
carlos_rocha15-Dec-04 5:18
carlos_rocha15-Dec-04 5:18 
GeneralRe: Form creation crisis!!! Pin
Dennis C. Dietrich15-Dec-04 5:51
Dennis C. Dietrich15-Dec-04 5:51 
GeneralRe: Form creation crisis!!! Pin
carlos_rocha15-Dec-04 6:14
carlos_rocha15-Dec-04 6:14 
GeneralRe: Form creation crisis!!! Pin
Dennis C. Dietrich15-Dec-04 6:35
Dennis C. Dietrich15-Dec-04 6:35 
GeneralRe: Form creation crisis!!! Pin
carlos_rocha15-Dec-04 6:43
carlos_rocha15-Dec-04 6:43 
GeneralRe: Form creation crisis!!! Pin
carlos_rocha15-Dec-04 22:11
carlos_rocha15-Dec-04 22:11 
QuestionHow to add Icon Overlay in VB.Net Pin
Zenly15-Dec-04 3:56
Zenly15-Dec-04 3:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.