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
G F
NA
44
6.6k
Want to change the label of a Read Only Text box
Jan 21 2020 4:03 AM
Hi,
I have a list box, lstjurisdictions, and when the form loads it loads records from a database.
When I select one of the items in the list box, I would like the label of a Text box to change instantly.
When I use the following code:
private
void
lstJursdictions_SelectedIndexChanged(
object
sender, EventArgs e)
{
string
curItem = lstJurisdictions.SelectedItem.ToString();
textBox3.Text = curItem;
}
All I get is the message: System.Data.DataRowView
as a label on the TextBox.
How can I get the Name of the label to change dynamically as the slected item from the list box changes?
Thank you!
Reply
Answers (
3
)
How to implement Find and Find Next functionality ?
Textbox array does not update in a User Control