I'm an old-school programmer (real old - Fortran, Pascal, etc.) who has not written any code in 15 years or so. I got the bright idea to learn VB (2008 Express). All has been going well and I'm at the tail end of writing a fairly complex program that includes some graphic routines. I think this is a simple question, and I'm just confused because of the VB terminology.
I have a graphic subroutine that I want to be able to call by clicking a button. The graphics routine works fine, and presents itself when I open the program. However, I need it to update as I change the data. VB will not let me call this routine. Here are the names of the two subs -
[Private Sub Do_The_Graph(By Val sender As Object, ByVal e As System.Windows. Forms.PaintEven tArgs) Handles Me.Paint]
[Private Sub Button3_Click(B yVal sender As System.Object, ByVal e As System.EventArg s) Handles Button3.Click]
The question is, how do I cause "Do_The_Gra ph" to execute when I click "Button_3"? Both routines reside in the same Class (and I don't fully understand that yet, either).
Thanks,
Nick.
I have a graphic subroutine that I want to be able to call by clicking a button. The graphics routine works fine, and presents itself when I open the program. However, I need it to update as I change the data. VB will not let me call this routine. Here are the names of the two subs -
[Private Sub Do_The_Graph(By Val sender As Object, ByVal e As System.Windows. Forms.PaintEven tArgs) Handles Me.Paint]
[Private Sub Button3_Click(B yVal sender As System.Object, ByVal e As System.EventArg s) Handles Button3.Click]
The question is, how do I cause "Do_The_Gra ph" to execute when I click "Button_3"? Both routines reside in the same Class (and I don't fully understand that yet, either).
Thanks,
Nick.
Comment