Click here to Skip to main content
16,007,081 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralI'm Baffled Pin
Roger Wright30-Oct-04 21:04
professionalRoger Wright30-Oct-04 21:04 
GeneralRe: I'm Baffled Pin
Dave Kreskowiak31-Oct-04 5:49
mveDave Kreskowiak31-Oct-04 5:49 
GeneralRe: I'm Baffled Pin
Roger Wright31-Oct-04 6:23
professionalRoger Wright31-Oct-04 6:23 
GeneralSerialize class module Pin
Red Sunday30-Oct-04 12:13
Red Sunday30-Oct-04 12:13 
GeneralRe: Serialize class module Pin
Dave Kreskowiak30-Oct-04 13:42
mveDave Kreskowiak30-Oct-04 13:42 
GeneralDrive activity Pin
johnjsm30-Oct-04 5:59
johnjsm30-Oct-04 5:59 
GeneralMMControl Help Pin
Red Sunday30-Oct-04 3:56
Red Sunday30-Oct-04 3:56 
GeneralNewbie problem with classes... Pin
FredGer30-Oct-04 0:42
FredGer30-Oct-04 0:42 
Hello,

I have defined the following class with the following methode:

Public Class DrwButtons

    Private MFDFont As New Font("Arial Narrow", 11)

    Const RectWidth As Integer = 130
    Const RectHeight As Integer = 28

    'Aufzählung der möglichen Buttonstyles
    Enum ButtonStyle As Integer
        BtnUnactive
        BtnActive
        BtnIsClickable
        BtnMouseOver
    End Enum

    'Die Button Zeichenfunktion
    Public Sub DrwButton(ByVal x As Integer, ByVal y As Integer, _
                         ByVal TextTop As String, ByVal TextBottom As String, _
                         ByVal BtnStyle As ButtonStyle, ByVal g As Graphics)

   '///CODE...

    End Sub

End Class

and now I'm trying to call the methode on the event MouseDown. The Problem is that I cannot call DrwButton on the MouseDown event because the MouseDown event is defined as follows:

Private Sub B772_MFD_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles MyBase.MouseDown
'///CODE...
End Sub

As you see the "e" is defined as System.Windows.Forms.MouseEventArgs and not as System.Windows.Forms.PaintEventArgs as it should be. I have no idea how I can call the DrwButton Methode from the MouseDown event. Please HELP! Confused | :confused:

Thanks in advance
Fred
GeneralRe: Newbie problem with classes... Pin
Christian Graus31-Oct-04 9:25
protectorChristian Graus31-Oct-04 9:25 
GeneralAccess to user network resources Pin
gamsja30-Oct-04 0:09
gamsja30-Oct-04 0:09 
GeneralData retrieval on XP with Thai language Pin
Member 64225429-Oct-04 20:35
Member 64225429-Oct-04 20:35 
GeneralMultiple click events Pin
rudemusik29-Oct-04 17:45
rudemusik29-Oct-04 17:45 
GeneralRe: Multiple click events Pin
MohammadAmiry30-Oct-04 6:57
MohammadAmiry30-Oct-04 6:57 
GeneralRe: Multiple click events Pin
rudemusik30-Oct-04 12:42
rudemusik30-Oct-04 12:42 
GeneralRe: Multiple click events Pin
rudemusik30-Oct-04 12:45
rudemusik30-Oct-04 12:45 
GeneralFolderBrowserDialog.SelectedPath not working on Windows 98 Pin
jms007x29-Oct-04 14:37
jms007x29-Oct-04 14:37 
GeneralDataReader Pin
compkitty729-Oct-04 9:05
compkitty729-Oct-04 9:05 
GeneralDivision with Doubles producing unpredictable results Pin
ldself29-Oct-04 8:05
ldself29-Oct-04 8:05 
GeneralRe: Division with Doubles producing unpredictable results Pin
Dave Kreskowiak29-Oct-04 9:17
mveDave Kreskowiak29-Oct-04 9:17 
Generalmsflexgrid Pin
Anonymous29-Oct-04 7:31
Anonymous29-Oct-04 7:31 
GeneralIE TabStrip Control Help Pin
dotnet2new29-Oct-04 7:30
dotnet2new29-Oct-04 7:30 
GeneralRe: IE TabStrip Control Help Pin
Dave Kreskowiak29-Oct-04 9:13
mveDave Kreskowiak29-Oct-04 9:13 
GeneralRe: IE TabStrip Control Help Pin
dotnet2new29-Oct-04 9:52
dotnet2new29-Oct-04 9:52 
QuestionHow to gain more control over a scanner through VB.NET? Pin
azam31629-Oct-04 5:57
azam31629-Oct-04 5:57 
AnswerRe: How to gain more control over a scanner through VB.NET? Pin
Dave Kreskowiak29-Oct-04 9:11
mveDave Kreskowiak29-Oct-04 9:11 

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.