this is my code:
TypeScript
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; }

VulpesRank #55 · 29.2K reputationPosted Apr 3, 2014, 6:30 AM EDT
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.
Jignesh TrivediRank #16 · 50.3K reputationPosted Apr 3, 2014, 8:30 PM EDT
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.