Results 1 to 3 of 3

Thread: Button vs. Picture control

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 1999
    Location
    Ont, Canada, Earth
    Posts
    458

    Wink

    Hi,
    In my program I'm using about 100 Picture Boxes. When I click on any Picture Box it changes background color in rotation (Red-Yello-Green-Blue-Brown- and back to Red). For efficiency reason I wanted to use Image Controls instead but they don't support background property.

    What if I use 100 Command Buttons (style=1 graphical) and change their colors when clicked, would that be more efficient that 100 Picture Boxes? All I want is to be able to click on small square (Button or Picture Box) and by doing so change it's color.

    Thanks
    Tomexx

  2. #2
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    <?>

    don't know about power abuse but I would
    use labels, no border
    label1.backstyle=1
    label1.backstyle=0

    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

  3. #3
    Guest
    A PictureBox will use more Resources than a CommandButton, but HeSaidJoe's solution about using the Label would be best.

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