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
Israel
693
1.3k
219.4k
Using a textBox for alert
Apr 26 2016 10:54 AM
Hi!
I would like to make a textbox alerting when I make an operation. These codes work well. But I need to use a Textbox to boot an alert.
private void textBox3_TextChanged(object sender, EventArgs e)
{
string s = (sender as TextBox).Text;
int i = Convert.ToInt16(s);
if (i > 5)
{
MessageBox.Show("Number greater than 5");
(sender as TextBox).Focus();
}
}
For instance, TextBox1.Text + TextBox2.Text = TextBox3.Text //If the answer its more than five (5). Then popup the message.
Reply
Answers (
6
)
How to display count number of screen in Bootstrap
Progess bar before opening windows application