Results 1 to 4 of 4

Thread: setting control array as whole

  1. #1

    Thread Starter
    Fanatic Member kevin_sauerwald's Avatar
    Join Date
    Feb 2002
    Location
    outside Philly
    Posts
    516

    setting control array as whole

    lets say I have 50 checkboxes.. can I set the array as a whole
    to a color at run time or do I need to set every index ?

    kinda like if you selected them all are design time and then
    just changed the backcolor as a whole for all of them ,...

  2. #2
    Frenzied Member Jmacp's Avatar
    Join Date
    Jul 2003
    Location
    UK
    Posts
    1,959
    VB Code:
    1. Dim i As Integer
    2. For i = 0 To check1.Count - 1
    3. check1(i).BackColor = vbRed
    4. Next i

  3. #3

    Thread Starter
    Fanatic Member kevin_sauerwald's Avatar
    Join Date
    Feb 2002
    Location
    outside Philly
    Posts
    516
    thats what I jsut did but I was wondering if there was a way
    to do something like

    check1.all.BackColor = vbRed

    I know that method does not exist but you get the jist...

    thanks...

  4. #4
    The picture isn't missing BuggyProgrammer's Avatar
    Join Date
    Oct 2000
    Location
    Vancouver, Canada
    Posts
    5,217
    Simply, no.
    Remember, if someone's post was not helpful, you can always rate their post negatively .

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