| | |
Text Box Newbie help
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
![]() |
Hi
To select text in a textbox control, you just need to specify the start and length of the selection, in characters. Paste this code into the form.load event handler, or wherever you want it..
Hope this helps
Alan
To select text in a textbox control, you just need to specify the start and length of the selection, in characters. Paste this code into the form.load event handler, or wherever you want it..
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
'set selection start to char 0 Text1.SelStart = 0 'set selection length to the length of whatever's in the text box Text1.SelLength = Len(Text1.Text)
Hope this helps
Alan
![]() |
Similar Threads
- writing from bottom up in rich text box (VB.NET)
- pass the value to the text box (JavaScript / DHTML / AJAX)
- Text box question (C#)
- Text box population from DBgrid. HELP!! (Visual Basic 4 / 5 / 6)
- text is being written in text box (Web Browsers)
- Help with text box height (HTML and CSS)
- Cannot enter any text in a IE text-box (Viruses, Spyware and other Nasties)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: Crystal REport 9.0
- Next Thread: how to load an image to a form
| Thread Tools | Search this Thread |
Tag cloud for Visual Basic 4 / 5 / 6
* 6 429 2007 access activex add age append application basic beginner birth bmp calculator cd cells.find click client code college column component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report retrieve save search sendbyte sites sort sql sql2008 sqlserver subroutine table tags textbox time timer urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows





