Link to home
Start Free TrialLog in
Avatar of Tech_Men
Tech_MenFlag for Israel

asked on

i need to delay print func

hi there ,
i have in my code 2 func that print reports
i want to delay them in 3 sec from 1 to 2 func
the first func there is no need to delay only the 2

thanks ....
try 
			{
				InsNewHes();
                                     HesMange.HesMan.PrintMerakzen(Hnum); // delay this print command in 3 sec
              
				
			}
			catch (Exception r)
			{
				MessageBox.Show(r.Message);
 
			}
            try
            {
 
                HesMange.HesMan.UpdateMakor(Hnum);
 
                int copys = Int32.Parse(comboBox1.Text);
                for (int i = 0; i < copys; i++)
                    HesMange.HesMan.PrintMerakzen(Hnum); // delay this print command in 3 sec
 
                this.Close();
 
            }
            catch (Exception r)
            {
                MessageBox.Show(r.Message);
                this.Close();
            }

Open in new window

SOLUTION
Avatar of Jaime Olivares
Jaime Olivares
Flag of Peru image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Tech_Men

ASKER

where
cau u type it in my code ?
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
thanks ...