Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

TextBox Enquiry

yauchildchewyauchildchew Member Posts: 19
I have a TextBox for input from user. The preset text is like "Please input here".
When user clicks the TextBox, the text will be erased (ie. TextBox.text="" when clicked).
Then users can input text there.

However, when click again, the text will be erased again and this goes on.

How to make the 1st Click to erase the preset text but the following clicks to point at the desired text location?

Thanks :)

Comments

  • BitByBit_ThorBitByBit_Thor Member Posts: 2,444
    : I have a TextBox for input from user. The preset text is like
    : "Please input here".
    : When user clicks the TextBox, the text will be erased (ie.
    : TextBox.text="" when clicked).
    : Then users can input text there.
    :
    : However, when click again, the text will be erased again and this
    : goes on.
    :
    : How to make the 1st Click to erase the preset text but the following
    : clicks to point at the desired text location?
    :
    : Thanks :)
    :
    :

    Use the GotFocus event instead of Click

    Best Regards,
    Richard

    The way I see it... Well, it's all pretty blurry
Sign In or Register to comment.