In VB.net I want to select the first line in a textbox. This is my code:
WebBrowser1.Document.GetElementById("Email").SetAttribute("value", TextBox1.Text)
But this selects the entire box, How can I change this so it only gets the first line?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can try this, provided that you add some error handling: