![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
|
I see what you need a textbox for. If the foreground color is really important you could of course consider making your own textbox, derived from a custom control. -- Regards, Maarten Struys PTS Software bv ---- "Dan" <anonymous (AT) devdex (DOT) com> wrote in message news:OzwTl7KRDHA.3796 (AT) tk2msftngp13 (DOT) phx.gbl... Thanks for the quick reply! I am trying to use the textbox for its scrolling capability. As I am sure you are aware, screen real-estate on handheld devices is at a premium, so I need to scroll some text. I could implement this with a label, but that would involve using a container panel to clip the text properly, and implementing a scroll bar to perform the scrolling. I may just live with the gray color until Microsoft provides a way to do this with the textbox. *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! |
#2
| |||
| |||
|
|
Dan, I have somewhat been able to do what you want by having the text box not be readonly at startup (that way you get the background color you want). Then in the GotFocus event for the text box set the readonly property to True and in the LostFocus set it back to false. This prevents the user from trying to change the data but allows the verticle scrollbar to function and still have color. "Maarten Struys" <maarten.struys (AT) nospam (DOT) pts.nl> wrote in message news:OhNtGqMRDHA.2228 (AT) tk2msftngp13 (DOT) phx.gbl... I see what you need a textbox for. If the foreground color is really important you could of course consider making your own textbox, derived from a custom control. -- Regards, Maarten Struys PTS Software bv ---- "Dan" <anonymous (AT) devdex (DOT) com> wrote in message news:OzwTl7KRDHA.3796 (AT) tk2msftngp13 (DOT) phx.gbl... Thanks for the quick reply! I am trying to use the textbox for its scrolling capability. As I am sure you are aware, screen real-estate on handheld devices is at a premium, so I need to scroll some text. I could implement this with a label, but that would involve using a container panel to clip the text properly, and implementing a scroll bar to perform the scrolling. I may just live with the gray color until Microsoft provides a way to do this with the textbox. *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |