>In my mian prg I use following codes to handle error routine <snip>> >It works fine, but the problem is when some error window appears with OK button, I press OK button then programm immediately quits and exe is closed. > >I want when error window appear, by pressing OK button the program must not be close. >