Click here to Skip to main content
15,889,281 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: How to convert Hex -> Dec -> Char Pin
Luc Pattyn26-Oct-09 1:23
sitebuilderLuc Pattyn26-Oct-09 1:23 
Questionevent Pin
helelark12325-Oct-09 4:55
helelark12325-Oct-09 4:55 
AnswerRe: event [modified] Pin
DaveAuld25-Oct-09 8:10
professionalDaveAuld25-Oct-09 8:10 
GeneralRe: event Pin
helelark12325-Oct-09 9:44
helelark12325-Oct-09 9:44 
GeneralRe: event Pin
Christian Graus25-Oct-09 10:08
protectorChristian Graus25-Oct-09 10:08 
GeneralRe: event Pin
helelark12325-Oct-09 10:28
helelark12325-Oct-09 10:28 
GeneralRe: event Pin
Christian Graus25-Oct-09 10:44
protectorChristian Graus25-Oct-09 10:44 
GeneralRe: event Pin
DaveAuld25-Oct-09 21:15
professionalDaveAuld25-Oct-09 21:15 
I do not see the relationship between the PictureBox on your form and your class.

As Christian States you need to add the chart onto your form as an instance. The code below will show you what i mean;

Code For the Form;
Public Class Form1

    Private WithEvents myChart As New Chart

    Public Sub New()

        ' This call is required by the Windows Form Designer.
        InitializeComponent()

        ' Add any initialization after the InitializeComponent() call.
        Me.Controls.Add(myChart)

        myChart.Top = 50
        myChart.Left = 50
        myChart.BorderStyle = BorderStyle.FixedSingle
        myChart.BackColor = Color.Aqua
        myChart.Width = 300
        myChart.Height = 300

    End Sub

    Private Sub myChart_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles myChart.MouseMove
        Debug.WriteLine("The Chart Mouse Is Moving")
    End Sub
End Class


Code for your Class;
Public Class Chart
    Inherits PictureBox

    Private Sub Chart_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Me.MouseMove
        Debug.WriteLine("Mouse Is Moving")

    End Sub
End Class


Now if you run the code and look at the immediate window, you will see 2 debug messages, 1 showingthe mouse move event firing on the form, and 1 for the mouse move event being handled inside your class. Depending on what you are trying to achieve, you can handle either or both of these events as and where you need them.

Dave
Who am I?:
Web|Facebook|Twitter|LinkedIn|Bebo

GeneralRe: event Pin
helelark12325-Oct-09 22:36
helelark12325-Oct-09 22:36 
QuestionVB control Command promt Pin
ericyeoh25-Oct-09 3:37
ericyeoh25-Oct-09 3:37 
AnswerRe: VB control Command promt Pin
Dave Kreskowiak25-Oct-09 8:11
mveDave Kreskowiak25-Oct-09 8:11 
QuestionComparing strings Pin
mehrdadc4825-Oct-09 2:56
mehrdadc4825-Oct-09 2:56 
AnswerRe: Comparing strings Pin
Dave Kreskowiak25-Oct-09 8:07
mveDave Kreskowiak25-Oct-09 8:07 
Questioncontrolling size and position of zoom player Pin
artsound25-Oct-09 2:14
artsound25-Oct-09 2:14 
AnswerRe: controlling size and position of zoom player Pin
Dave Kreskowiak25-Oct-09 8:06
mveDave Kreskowiak25-Oct-09 8:06 
QuestionDetermine mail is simple mail or read receipt Pin
Rupesh Kumar Swami25-Oct-09 1:32
Rupesh Kumar Swami25-Oct-09 1:32 
AnswerRe: Determine mail is simple mail or read receipt Pin
Dave Kreskowiak25-Oct-09 8:05
mveDave Kreskowiak25-Oct-09 8:05 
Questiontimetable scheduler Pin
Burning Candle24-Oct-09 23:53
Burning Candle24-Oct-09 23:53 
AnswerRe: timetable scheduler Pin
Richard MacCutchan25-Oct-09 0:16
mveRichard MacCutchan25-Oct-09 0:16 
AnswerRe: timetable scheduler Pin
Dave Kreskowiak25-Oct-09 8:03
mveDave Kreskowiak25-Oct-09 8:03 
QuestionHow to View Wordpad Document inside the Forms Panel ? Pin
Paramu197324-Oct-09 22:29
Paramu197324-Oct-09 22:29 
AnswerRe: How to View Wordpad Document inside the Forms Panel ? Pin
Christian Graus24-Oct-09 23:25
protectorChristian Graus24-Oct-09 23:25 
QuestionForm Resize [modified][Solved] Pin
AshSofDev24-Oct-09 17:04
AshSofDev24-Oct-09 17:04 
AnswerRe: Form Resize Pin
Dave Kreskowiak24-Oct-09 17:07
mveDave Kreskowiak24-Oct-09 17:07 
GeneralRe: Form Resize Pin
AshSofDev24-Oct-09 17:11
AshSofDev24-Oct-09 17: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.