dipacheco 0 Posted March 21, 2011 Report Share Posted March 21, 2011 Boas pessoal... como faço para colocar um highlight ao texto de uma textbox... ou ate mesmo à textbox vazia. eu nao sei se highlight será o termo correcto mas é como fazer a selecção de um texto normal... é possivel? Link to post Share on other sites
ribeiro55 47 Posted March 21, 2011 Report Share Posted March 21, 2011 Ao texto todo? TextBox1.SelectionStart=0 TextBox1.SelectionLength = TextBox1.Text.Length TextBox1.Select Ou simplesmente TextBox1.SelectAll() TextBox1.Select Sérgio Ribeiro "Great coders aren't born. They're compiled and released""Expert coders do not need a keyboard. They just throw magnets at the RAM chips" Link to post Share on other sites
dipacheco 0 Posted March 21, 2011 Author Report Share Posted March 21, 2011 thanks. Link to post Share on other sites
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now