S
Simon
I've only recently got started using VB.net Compact Framework, and I'm
struggling to create a read-only Textbox with a white background.
Even though I can set the background colour of a textbox, as soon as I set
the control to read-only it turns the background grey. Unfortunately I
can't set the enabled property to false as sometimes I need the scrollbars
to work on the Textbox. I did think about using a label instead of a
Textbox, but there isn't an option to add a border to a Label (if I use a
Label I need it to look like a Textbox) and of course it has no scrollbar.
I know in VB6 it was possible to intercept the keypress event to prevent
text been added to a text box, is this possible using .Net CF?
Does anyone have any suggestions?
Thanks,
Simon
struggling to create a read-only Textbox with a white background.
Even though I can set the background colour of a textbox, as soon as I set
the control to read-only it turns the background grey. Unfortunately I
can't set the enabled property to false as sometimes I need the scrollbars
to work on the Textbox. I did think about using a label instead of a
Textbox, but there isn't an option to add a border to a Label (if I use a
Label I need it to look like a Textbox) and of course it has no scrollbar.
I know in VB6 it was possible to intercept the keypress event to prevent
text been added to a text box, is this possible using .Net CF?
Does anyone have any suggestions?
Thanks,
Simon