Results 1 to 5 of 5

Thread: PictureBox1_Paint and declaring variables [RESOLVED]

Threaded View

  1. #1

    Thread Starter
    Member
    Join Date
    Jun 2005
    Location
    palo alto california
    Posts
    45

    Resolved 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
  •  



Click Here to Expand Forum to Full Width