Results 1 to 4 of 4

Thread: Newbie of a question

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Dec 2002
    Location
    in a little closet
    Posts
    30

    Question Newbie of a question

    Private Sub ChkBold_Click()

    If lblMessages.FontBold = False Then
    lblMessages.FontBold = False
    Else
    lblMessages.FontBold = True
    End If

    End Sub

    how do i make that work, when the checkbox isnt click it goes back to default and when its click it makes the words bold and when its unchecked it makes them normal......

    thanks
    All Help Very Much Appreciated

  2. #2
    Frenzied Member McGenius's Avatar
    Join Date
    Jan 2003
    Posts
    1,199
    VB Code:
    1. Private Sub Check1_Click()
    2.     Label1.FontBold = CBool(Check1.Value)
    3. End Sub
    McGenius

  3. #3
    Fanatic Member
    Join Date
    Feb 2003
    Location
    Los Angeles, CA
    Posts
    681
    VB Code:
    1. Private Sub ChkBold_Click()
    2.  
    3. lblMessages.FontBold = ChkBold.Value = vbChecked
    4.  
    5. End Sub
    what you wrote there is a truism...
    there are 2 reasons why i leave my work unfinished:
    (1) i'm getting old.

  4. #4

    Thread Starter
    Junior Member
    Join Date
    Dec 2002
    Location
    in a little closet
    Posts
    30
    thanks a lot guys that did the trick.

    now for option boxes would i do the same think just change the names?

    actually nevermind that because option boxes dont have the same proptery as checkboxes.

    but still how would i make the little dot dissappeared after i clear the thingy
    Last edited by Newer_Newbie; Mar 26th, 2003 at 02:47 PM.
    All Help Very Much Appreciated

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