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
Gustavo
NA
1.3k
453.9k
How Do I: Get the text value from the ((TextBox)sender)?
May 5 2010 10:38 AM
Hello:
I am writing my own validation routine and I need to get some information from the TextBox that I am coming from.
I am using:
((
TextBox
)sender).Name.ToString() To get the name of the TextBox.
Is there a way to get the Text Value of the TextBox? I know if I do a:
((
TextBox
)sender) It will give me: "System.Windows.Forms.textBox, Text: Company" The Value that I want is the "Company". I guess it I can parse it and get it, but is there a simpler way like the: ((
TextBox
)sender).Name.ToString() ?
Reply
Answers (
3
)
how to retrieve the value of radio button (checked/unchecked) from another class
How Do I: Find the name of the current active form from a called class.