Problem – displaying a graphics form from another form’s button click event without losing the XY data plot.
If the Startup form is the GraphWindow form the Graphlib.vb calls create a XY data plot.
Code outline (not everything included):
(Sub GraphWindow_Pai nt(ByVal sender As Object, ByVal e As Sys…PaintEventA rgs) _ Handles Me.Paint)
Call Graphscale(xmin , xmax, ymin, ymax)
Call DrawAxis(10,10)
XY data
Call GraphPlot
End Sub
End Class
If the Startup form is changed to PrintData form with a Test button which calls the GraphWindow form, the Graphlib.vb calls do not create a XY data plot. They are called because certain graph subroutines variables are dumped to a file.
PrintData Form Test button code:
Me.Hide( )
Dim frmGraphWindow1 As New GraphWindow
frmGraphWindow1 .ShowDialog( ) ‘also tried Show
If the Startup form is the GraphWindow form the Graphlib.vb calls create a XY data plot.
Code outline (not everything included):
(Sub GraphWindow_Pai nt(ByVal sender As Object, ByVal e As Sys…PaintEventA rgs) _ Handles Me.Paint)
Call Graphscale(xmin , xmax, ymin, ymax)
Call DrawAxis(10,10)
XY data
Call GraphPlot
End Sub
End Class
If the Startup form is changed to PrintData form with a Test button which calls the GraphWindow form, the Graphlib.vb calls do not create a XY data plot. They are called because certain graph subroutines variables are dumped to a file.
PrintData Form Test button code:
Me.Hide( )
Dim frmGraphWindow1 As New GraphWindow
frmGraphWindow1 .ShowDialog( ) ‘also tried Show
Comment