Results 1 to 3 of 3

Thread: Get color from one, put in the other [RESOLVED]

  1. #1

    Thread Starter
    Supreme User Madboy's Avatar
    Join Date
    Oct 2003
    Location
    England
    Posts
    3,253

    Get color from one, put in the other [RESOLVED]

    VB Code:
    1. Option Explicit
    2.  
    3. Private Sub picColor_Click(Index As Integer)
    4. picPreview.BackColor = picColor.Item.BackColor
    5. End Sub

    1 picture box, 50 pictureboxes in array. When you click the one from the array, i want its color to show in the first pic box.

    Easy, but im running into problems
    Last edited by Madboy; Mar 31st, 2004 at 08:06 AM.

  2. #2
    Frenzied Member Buzby's Avatar
    Join Date
    Jan 1999
    Location
    UK
    Posts
    1,670
    try this

    VB Code:
    1. Private Sub picColor_Click(Index As Integer)
    2. picPreview.BackColor = picColor(Index).BackColor
    3. End Sub
    'Buzby'
    Visual Basic Developer
    "I'm moving to Theory. Everything works there."

  3. #3

    Thread Starter
    Supreme User Madboy's Avatar
    Join Date
    Oct 2003
    Location
    England
    Posts
    3,253
    Cheers

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