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
Mario Cuervo
NA
26
7.1k
Having to click twice the close button to close a form
Jul 25 2014 2:25 PM
I have the following code attached to SelectedIndexChange event of comoBox5:
private void comboBox5_SelectedIndexChanged(object sender, EventArgs e)
{
_selectedValue = (int) comboBox5.SelectedValue;
textBox1.Text = _selectedValue.ToString();
}
which works fine, except that it has a non desire side effect. When ever such code is active you will need to click twice the close button of the form (X) in order to close it. Any ideas on how to avoid this side effect??
Reply
Answers (
19
)
how to get pixel of bitmap image in WP app
c#