Cancel in Dialog box
-
Sir, I have some 12 dialog boxes called in sequence.There are situations where I call a dialog box from a function.In that case if I choosing the cancel button eventhough that dialog box hides since Iam calling it in functions it proceeds to the other dialog boxes.When I give cancel in the dialog box I want the entire process to be stopped and I want to start from the first.How can we achieve this.Please kindly help me. Thanking you. regards, Subhashree
-
Sir, I have some 12 dialog boxes called in sequence.There are situations where I call a dialog box from a function.In that case if I choosing the cancel button eventhough that dialog box hides since Iam calling it in functions it proceeds to the other dialog boxes.When I give cancel in the dialog box I want the entire process to be stopped and I want to start from the first.How can we achieve this.Please kindly help me. Thanking you. regards, Subhashree
The button you press is returned from DoModal. Check if it's IDCANCEL, and if it is, start again. From memory there is something on MSDN about building wizard type apps, I don't remember anything else, but you should search MSDN, it could be helpful. Christian Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002 During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
-
Sir, I have some 12 dialog boxes called in sequence.There are situations where I call a dialog box from a function.In that case if I choosing the cancel button eventhough that dialog box hides since Iam calling it in functions it proceeds to the other dialog boxes.When I give cancel in the dialog box I want the entire process to be stopped and I want to start from the first.How can we achieve this.Please kindly help me. Thanking you. regards, Subhashree
When you click on cancel button, it returns IDCANCEL, check this value using coditional statements, if it is then come out of loop/application/return to the begining