pausing execution on form display
Posted on 2005-03-30
my project type is console (a compulsion) ..
in the main function, i need the execution to go like this :
FormX = new Form(); //windows form
//Display FormX, and pause execution till the user presses the "Continue" button on the form.
//execute some more lines
//again display the FormX ..
at present, when the form needs to be displayed, i'm using FormX.ShowDialog() .. but, then to continue, the user has to click the 'X' button (to close the form), and then, the next time i want to display it, i again call ShowDialg() ..is there any way that execution can continue without closing the form (i.e., just pressing a command button on the form - i.e., what should be the code behind such a command button) ..