Results 1 to 7 of 7

Thread: backcolour oncommand button

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Oct 2000
    Posts
    23

    Question

    hello!
    Is it possible to change the backcolour of a command button if it doesn't have the focus?
    Thanks

  2. #2

    i believe so

    I'm no expert or anything, but try like

    Private Sub Command2_Click()
    Command1.BackColor = vbRed
    Command1.Style = 0
    End Sub

    If that's what ya mean.

  3. #3
    Guest
    Set the Command's Style to Graphical and you will be able to change the backcolor.

  4. #4

    Didn't I do that?

    Didn't I do that in the

    Command1.Style = 0

    ????????

    lol

  5. #5
    Guest
    I don't think it can be set during Runtime. Plus, you must be a faster typer than me because I didn't see your post when I replied .

  6. #6
    Aaaah (bows to matthew). You are correct. You cannot set it at runtime. I didn't know it though cause I always set it as soon as I add the control. Heh

  7. #7
    Guest

    Talking

    Ah...right as always .

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