this is my code:
private void main_Load(object sender, EventArgs e) { timer1.Interval = 10000; // 1 minute in milliseconds timer1.Enabled = true; // start timer }
private void timer1_Tick(object sender, EventArgs e) { timer1.Enabled = false; // stop timer lib_bt.Enabled = false; }

Jignesh TrivediPosted Apr 4, 2014, 12:30 AM
hi,
you can an do one thing, open the model popup without close button, so this will make you main form inaccessible as you want
hope this will help you.
VulpesPosted Apr 3, 2014, 10:30 AM
However, note that if you have any code in the main form which pops up a MessageBox then this will also cause these events to fire.