Results 1 to 2 of 2

Thread: change text color for buttons? VB5

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2001
    Posts
    421

    Question

    how do I change the text color on a command button?? I am using VB5
    [vbcode]
    ' comment
    Rem remark
    [/vbcode]

  2. #2
    Guest
    Not sure if VB5 has the Style property, but...
    place a checkbox on the form, set it's style to Graphical, set it's forecolor to change the font.


    Code:
    Private Sub Check1_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
        Check1.Value = vbUnchecked
    End Sub
    
    'or
    
    Private Sub Check1_Click()
        If Check1.Value = vbChecked Then
            Check1.Value = vbUnchecked
            'code
        End If
    End Sub

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