TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Guingab Maricar
NA
24
0
Remove carriage return character in a textbox
Oct 2 2008 11:07 PM
I have a textbox that should send any text to a server program. I have a keypress event that activates upon pressing an enter key. It sends the messages plus additional character(carriage return). How can I remove this character. I already tried using trim and replace but did not work..I also want my cursor to go back to position 0,0 of textbox. I tried Focus() and SelectionStart but I don't like the outcome. Is there a way to set the position of the cursor to row 1 col 1 after pressing enter key?
Reply
Answers (
4
)
Datasets of a report in Report Viewer control
How can I get the dates of all Sundays of the year 2009 using C#.net