StrataFrame Forum

SelectOnEntry

http://forum.strataframe.net/Topic10825.aspx

By Howard Bennett - 8/13/2007

In VFP, I could turn "SelectOnEntry" on and when the user enters the textbox - all previously entered information was selected and pressing a key would erase what was there and replace it with the new data.  Is there such a feature in VB/StrataFrame?
By Trent L. Taylor - 8/13/2007

Is there such a feature in VB/StrataFrame?

Really, off the top of my head, I think that you will have to handle the Enter event and then you can call the SelectAll() method on the TextBox:

me.Textbox1.SelectAll()
By Howard Bennett - 8/13/2007

Okay - thanks.  I'll do that - just thought there was some easier/better way than that.
By Trent L. Taylor - 8/14/2007

Yeah, I noticed that the other day myself when I needed this functionailty.  This might be something for the future Wink
By Howard Bennett - 8/14/2007

That'd be great!
By Ger Cannoll - 4/5/2011

Just wondering if anything has been done on this from within the framework.

I have a form with a whole pile of controls (textBoxes) and cannot figure out how it is selecting the text. For some of the TextBoxes it seems to select ALL the text , others it places the cursor at the end, without selecting the text. For instance on some controls, say they start off blank and I enter in some text, if I Shift + tab back to the control , it will Select the whole control and others it deos not, but I cannot see anything different about the controls.... perhhaps it depends on the data in the controls ? or what they are bound to