Search code examples
c#windows-ce

Unwanted underscores appear in textbox in Windows CE application


I have created a windows CE application. It downloads some data and presents them on a windows form.

I have seen that sometimes ghostly underscore (_) is seen in textbox although there is no _ in data which is downloaded.

I have already trimmed data also wrote code to remove _ from data if at all it is there. Still the _ is seen in text box.

Please help


Solution

  • I have created windows CE windows forms application with compact framework 3.5. When I set "&" static data in textbox value it shows me "_" When I set "&&" in textbox value it shows me "&".

    So this was the issue. So I replaced "&" with "&&" in the data which I receive before setting it to textbox.

    This has solved my issue.