Textbox border not displaying in Smartphone - WM 5.0?

Hi all,

I am developing an application to work across different devices including Smartphone WM 5.0, Pocket PC 2003 Second Edition + Square Screen.

The problem is that if I put a simple Textbox on the screen it only shows the border on the Smartphone when I select it (Pocket PC displays it always which is what I want).

Does anybody know how I can display the border all the time

I've tried to draw a rectangle around the Textbox and it does show a border on the right and bottom, but that's about it, and when I select the Textbox it displays the border which is double think on the right and bottom.

Thanks in advance.

Grant.



Answer this question

Textbox border not displaying in Smartphone - WM 5.0?

  • venp

    Hi,

    Yea - I tried to draw a rectangle around the textbox in the paint method (overide) + tried to set the Border property to FixedSingle and Fixed3D.

    One thing - I am using the emulator within Visual Studio - maybe that's the problem as I haven't tested it on an actual smart phone yet. It works on the PDA emulators and actual PDA device.

    Thanks for all your help.

    Cheers,

    Grant.


  • Dave Staal

    Please try this on actual device. It may be a bug in the NETCF implementation, Emulator or the WM Image. We'll file a bug appropriately.

    Manav



  • clint 2

    Hi Manav,

    I've tried that, but the border still only shows when you select it.

    Thanks,

    Grant.


  • Terry Smith

    Try setting up BorderStyle property on TextBox to Fix3D

    Manav



  • nattylife

    Hi,

    That's the problem that I'm trying to solve - I want to display the borders all the time.

    If I have n number of Textboxes then I can only see the border for one of them when I click on it, but I want to see the borders for all of them all the time.

    Thanks,

    Grant.


  • *Rick*

    I'm unsure as to why the border doesn't show up. Did you try handling the paint event for the textbox and draw a custom border (I'm not sure if this is how you drew the rectangle outside the textbox)
  • ivarsv

    The border appears when you set focus on it at designtime or runtime
  • Textbox border not displaying in Smartphone - WM 5.0?