|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Is that a blank in your TextBox ....... or are you glad to see me? (Sorry, an oblique reference to an old Mae
West line.) But seriously ... sometimes a blank in a TextBox means something very much different than nothing in the TextBox, but there is no visual clue to the end user which permits him to distinguish between the two cases - that I know of. So that's my question. Is there anything I can do with a standard TextBox which would make it visually obvious whether a string ended with the last visible character or had some number of trailing blanks? I suppose I can develop my own class which inherits from TextBox and pad the string on the right with some character which can't easily be entered and which the end user should have no reason to use. But I also suspect that this will get somewhat messy before it works to my satisfaction. So ... any ideas? Thanks, Bob You can start looking what the masked textbox can do for you.
Show quoteHide quote "eBob.com" <eBob.***@totallybogus.com> wrote in message news:uVsx4bX4KHA.5032@TK2MSFTNGP02.phx.gbl... > ... or are you glad to see me? (Sorry, an oblique reference to an old Mae > West line.) > > But seriously ... sometimes a blank in a TextBox means something very much > different than nothing in the TextBox, but there is no visual clue to the > end user which permits him to distinguish between the two cases - that I > know of. So that's my question. Is there anything I can do with a > standard TextBox which would make it visually obvious whether a string > ended with the last visible character or had some number of trailing > blanks? > > I suppose I can develop my own class which inherits from TextBox and pad > the string on the right with some character which can't easily be entered > and which the end user should have no reason to use. But I also suspect > that this will get somewhat messy before it works to my satisfaction. So > ... any ideas? > > Thanks, Bob > eBob.com wrote:
> But seriously ... sometimes a blank in a TextBox means something very If you select all the text in the box then trailing blanks would be > much different than nothing in the TextBox, but there is no visual > clue to the end user which permits him to distinguish between the two > cases - that I know of. So that's my question. Is there anything I > can do with a standard TextBox which would make it visually obvious > whether a string ended with the last visible character or had some > number of trailing blanks? highlighted. -- Andrew
How to build the form with details button?
Upgrade 2008 to 2010 MailMessage message size problem in saving image How Does ComboBox Determine What To Display? vb.net 2008 display and print directory/subdirectories Foreign Currency Exchange Rates Web service Get email with Visual Basic 2008 Draw an arrow on a line How to read a Stream into an XElement |
|||||||||||||||||||||||