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
VulpesPosted Aug 2, 2011, 4:41 PM
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.
NitsPosted Aug 3, 2011, 12:05 AM
Sam HobbsPosted Aug 2, 2011, 4:34 PM
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.
NitsPosted Aug 2, 2011, 3:28 PM
Mahesh ChandPosted Aug 2, 2011, 2:52 PM