Results 1 to 5 of 5

Thread: Creating an image box in code

  1. #1

    Thread Starter
    Addicted Member Illiad's Avatar
    Join Date
    Mar 2003
    Location
    Chicago
    Posts
    196

    Creating an image box in code

    How can I create a new image box using only code. And how can I add this new image box to an already existing array of image boxes?
    Quis Custodiet Ipsos Custodes?

    You don't have to be faster than the bear, you just have to be faster than the slowest person running from the bear.

  2. #2
    New Member
    Join Date
    Jul 2003
    Posts
    8
    load picturebox(Index)

  3. #3

    Thread Starter
    Addicted Member Illiad's Avatar
    Join Date
    Mar 2003
    Location
    Chicago
    Posts
    196
    Where will this image box appear? Do I have to set the left,top?
    VB Code:
    1. imagebox(index).left = 400
    2. imagebox(index).top = 200
    Quis Custodiet Ipsos Custodes?

    You don't have to be faster than the bear, you just have to be faster than the slowest person running from the bear.

  4. #4
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171
    Originally posted by Illiad
    Where will this image box appear? Do I have to set the left,top?
    VB Code:
    1. imagebox(index).left = 400
    2. imagebox(index).top = 200
    Yes, you do have to set them.


    Has someone helped you? Then you can Rate their helpful post.

  5. #5
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431
    You don't have to set the Top and Left, but if you don't the new image will have the same Top and Left as the original. You also may have already figured this out, but you have to set the Visible to True if you want to see the new image

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