?
Solved

pausing execution on form display

Posted on 2005-03-30
3
Medium Priority
?
214 Views
Last Modified: 2010-04-16
hi !!
my project type is console (a compulsion) ..
in the main function, i need the execution to go like this :

FormX = new Form(); //windows form

//some lines

//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) ..

thanks :)

muskad202
0
Comment
Question by:muskad202
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 8

Expert Comment

by:rajaloysious
ID: 13663413
You can use .Show() instead of showdialog
but the execution will immediately return back to the next line

for capturing the continue_clik, you should capture the button click  event of the continue button

cheers
0
 
LVL 2

Author Comment

by:muskad202
ID: 13663581
>>>You can use .Show() instead of showdialog
but the execution will immediately return back to the next line

that is precisely my question, how to prevent the execution from continuing ..

>>>you should capture the button click  event of the continue button

i know .. i was looking for the code to put in the event handler :)
0
 
LVL 8

Accepted Solution

by:
rajaloysious earned 80 total points
ID: 13663697
>>>>i know .. i was looking for the code to put in the event handler :)
whatever you want to be put in
which says in your first post...
//execute some more lines
this should be put in

>>>that is precisely my question, how to prevent the execution from continuing ..
this is the way show() works
===============
Alternate way
Use .ShowDialog()

And in continue_click
say this.close or this.hide

After this the control will come to you...
cheers
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question