|
-
Jun 19th, 2005, 01:20 PM
#1
Thread Starter
Member
PictureBox1_Paint and declaring variables [RESOLVED]
Hi,
I would just like to create a list of points through some algorithm under Private Sub Form1_Load
and then have them displayed with drawellipse(pens.black,x(a),y(a),1,1) under
Private Sub PictureBox1_Paint.
I have the variables x(), y() and 'a' as public singles ontop in the class arena.
And declare them again in Private Sub Form1_Load when I calculate how many points needed x(a),y(a)....
But in the error analysis when the program runs, apparently the variables aren't public enough because they are listing as unfilled.
Am I declaring the variables correctly or is it that
Private Sub PictureBox1_Paint
tries to paint before the number of points are calculated?
Thanks for you's help..
Last edited by stephen weber; Jun 26th, 2005 at 02:29 PM.
Reason: solved
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|