Results 1 to 2 of 2

Thread: image boxes

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2000
    Location
    LewZer-LanD
    Posts
    120

    image boxes <-- READ it's hard

    No, i'm not a lamer, i just cant figure it out.

    i have an imagebox names image1(1). now.. during the run-time i want to be able to make a duplicate of this image, and call it image1(2) or image2(1). how can this be done? i have tried to dim it as new, but imagebox is not an option. any help is apreaciated. thanx!

    [Edited by da404LewZer on 03-20-2000 at 02:17 AM]
    Kid A

    18 Year Old Programmer
    Visual Basic 6 & .NET Enterprise, ASP, WinXP (Advanced Server) Administration, HTML, Graphic Arts, Winsock, Learning VC++ and now maybe C#.. heh
    [vbcode]
    'back in the day vb6 code
    Private Sub My_Life()
    If Hour(Now) > 3 And Hour(Now) < 13 Then
    Status = "Sleeping"
    Else
    Status = "Computing"
    End If
    End Sub
    [/vbcode]

  2. #2
    Frenzied Member Mark Sreeves's Avatar
    Join Date
    Nov 1999
    Location
    UK
    Posts
    1,845
    Use Load:

    Code:
    Option Explicit
    
    Private Sub Command1_Click()
      Load Image1(1)
      Image1(1).Picture = Image1(0).Picture
      Image1(1).Visible = True
      'now move it to where you want it
      Image1(1).Move Image1(0).Left + Image1(0).Width, Image1(0).Top
    End Sub
    Mark
    -------------------

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