-
PictureBox Display
I have a form (X3) opening within an MDI form (X1) when selected from a menu. The task of the form is to draw a graph, which is achieved though a called subroutine.
This does not activate until a scrollbar is clicked, at which point the picture appears fine.
Firstly I want the picture to be drawn once the form is opened. As a recent converter to VB.net I am struggling to set the code for this.
The graph also starts up and refreshes itself happily when another form is dragged across it.
Any suggestions on how to code an automatic initial plot.
Thanks for the help.
-
Re: PictureBox Display
It sounds like you already have a backbuffer setup for the graph, so I guess you could do the initial drawing (directly to the backbuffer surface) in the Form Load event or similar. Tough to say without knowing the anatomy of your program in more detail.
-
Re: PictureBox Display
You could add the code in the New procedure of your form but after the InitializeComponent line.