Skip to content

Customize DisplayText of the Textbox #662

Closed

Description

@itg-assistant

Tung Ngo asked 2017-03-01 03:29:12 UTC

Hello,

I love the Tools property of the Wisej textbox controls. With it, I can remove a lot of customization code when moving VWG-> Wisej. Thank guys.

Some more features I wish to see in the Wisej textbox control:

  • The ability to display a customized content depend on the focus state. Please see the picture attached. At the moment, I work around by handling the GotFocus/LostFocus event.

  • Support a better tooltip instead of a default one.

Thank you for the great job.

Activity

  1. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    Thomas (ITG) answered 2017-03-01 07:42:57 UTC

    Hi Tung,

    thanks for your kind words, that's much appreciated!

    Depending on what you're after, the Watermark property of Textbox and ComboBox might be what you are looking for. I have used this in similar scenarios as those that you describe. Other than that, you could create your own class that derives from Textbox/ComboBox to handle the Get/Lost Focus events and adds a property for alternative text to show while focused. That way you don't have to duplicate the code but keep it at one place.

    Best wishes
    Thomas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    GeneralQuestions, how-tos and everything else.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions