Hi everyone as I m in learning process of c# I have few question regarding it?
1) how to display msg label on multiple textbox, label or image when we take mouse pointer there or cursor??
2) how to provide an error provider if any textbox is left empty??
3) how to give timer to messagebox button so it get close after 10sec.??
Loading

VulpesRank #55 · 29.2K reputationPosted Aug 2, 2011, 12:41 PM EDT
Suppose, the timer is started and the MessageBox is opened on a button click:
then place this code in the timer's Tick eventhandler:
private void timer1_Tick(object sender, EventArgs e)
This code uses the keyboard shortcut Alt+F4 to close the active window.
Mahesh ChandRank #1 · 393.3K reputationPosted Aug 2, 2011, 10:52 AM EDT
Nits37 reputationPosted Aug 2, 2011, 11:28 AM EDT
Sam HobbsRank #107 · 20.5K reputationPosted Aug 2, 2011, 12:34 PM EDT
Message boxes were not designed to be timed. It will be easy to just create a form that works like a message box except different in whatever ways you need it to be different.
Nits37 reputationPosted Aug 2, 2011, 8:05 PM EDT