Results 1 to 3 of 3

Thread: [RESOLVED] please help, beginners question

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2008
    Posts
    14

    Resolved [RESOLVED] please help, beginners question

    Code:
    If Answer = "=,<>,>,<,>=,<=" Then
                        Label1.Text = "Great!"
                    Else : Label1.Text = "Please enter the answer exactly as here in the program..."
    Now after "please enter the answer.." i want it that Label2.Text also say something but i dont know what i must type im confused.

  2. #2

    Thread Starter
    New Member
    Join Date
    Sep 2008
    Posts
    14

    Re: please help, beginners question

    Ohhh nevermind i got it just Label2.Text = "" i feel stupid now

  3. #3
    Frenzied Member MaximilianMayrhofer's Avatar
    Join Date
    Aug 2007
    Location
    IM IN YR LOOP
    Posts
    2,001

    Re: [RESOLVED] please help, beginners question

    Just a couple of tips:

    1. Don't leave it up the the IDE to assign your control names.

    Label1 and Label2 may work very well when you have 3 or 4 controls on a form, but when that number goes up, you're going to find your code harder and harder to understand.

    2. Use the following code to assign empty string values:

    Code:
    Label2.Text = string.Empty

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