Need Some Visual Basic Help

Discussion in 'OT Technology' started by m0rningbreakfast, Feb 10, 2003.

  1. m0rningbreakfast

    m0rningbreakfast New Member

    Joined:
    Dec 20, 2002
    Messages:
    4,835
    Likes Received:
    0
    Location:
    Sunnyvale - San Jose, CA
    I'm not asking for anyone to do my "homework," but I am following my book to the letter but its not yielding the results that I need.

    I have to make a label that starts out as a face with no smile/frown.

    Then under it there are two command buttons labeled "Smile" and "Frown" and when I press either one it changes the normal face to either a smiley or a frown face.

    the label box is named "lblFace"
    the command box is named "cmdSmile"
    " "cmdFrown"

    The command button "Smile" is as follows:
    -------
    Private Sub cmdFrown_Click()

    lblFace.Font.Name = Wingdings
    lblFace.Caption = "J"
    lblFace.Font.Size = 24


    The command button "Frown" is as follows:
    --------
    Private Sub cmdSmile_Click()

    lblFace.Font = Wingdings
    lblFace.Caption = "L"
    lblFace.Font.Size = 24


    When I run it I get the normal face as directed, but upon hitting the FROWN or SMILE buttons, I get a funky A and a squiggly Y thing.

    What am I doing wrong?

    Need help ASAP.
     
  2. 5Gen_Prelude

    5Gen_Prelude There might not be an "I" in the word "Team", but

    Joined:
    Mar 14, 2000
    Messages:
    14,519
    Likes Received:
    1
    Location:
    Vancouver, BC, CANADA
    I'd imagine wingdings should be in quotes
     
  3. m0rningbreakfast

    m0rningbreakfast New Member

    Joined:
    Dec 20, 2002
    Messages:
    4,835
    Likes Received:
    0
    Location:
    Sunnyvale - San Jose, CA

Share This Page