Results 1 to 3 of 3

Thread: textbox question

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2000
    Posts
    258
    Can I change all the forecolor and backrground colors using

    me.controls some how ? That way I don't have to list all the controls on every form ?
    Visual Basic 6 SP4 on win98se

    QUIT THE RAT RACE BECAUSE YOUR MESSING THE WORLD UP !!!!!

  2. #2
    Guest

    Lightbulb Yes, Mister, You can.

    Yes, you can. Here's an example.

    Code:
        Dim c As Control
        On Error Resume Next
        
        For Each c In Me.Controls
            If TypeOf c Is TextBox Then
                c.BackColor = RGB(x, x, x)
                c.ForeColor = RGB(x, x, x)
            End If
        Next

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2000
    Posts
    258
    Thanks
    Visual Basic 6 SP4 on win98se

    QUIT THE RAT RACE BECAUSE YOUR MESSING THE WORLD UP !!!!!

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