CANCEL BUTTON
-
I need to add a button to my form which stops the process, just like cancel button in install applications. which way do i have to use? please somei-one hel me!!!
-
I need to add a button to my form which stops the process, just like cancel button in install applications. which way do i have to use? please somei-one hel me!!!
Adnan Merter wrote:
I need to add a button to my form which stops the process, just like cancel button in install applications.
What process do you need to stop?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke -
I need to add a button to my form which stops the process, just like cancel button in install applications. which way do i have to use? please somei-one hel me!!!
Adnan Merter wrote:
I need to add a button to my form which stops the process,
So what do you need help with, adding a button, responding to a button click, or stopping a process?
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
-
Adnan Merter wrote:
I need to add a button to my form which stops the process,
So what do you need help with, adding a button, responding to a button click, or stopping a process?
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
i need help about stopping the process the prcess is driving a stepper motor i mean the button must stop all actions while my program sending data to parallel port, just like an emergency "stop button" or "cancel button in install application" thanks
-
i need help about stopping the process the prcess is driving a stepper motor i mean the button must stop all actions while my program sending data to parallel port, just like an emergency "stop button" or "cancel button in install application" thanks
Ok, then you'll need at least one other thread for this. Do the work of communicating with the parallel port in the secondary thread. This will free up the primary thread to handle the UI. See here for the way to gracefully stop a thread.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
-
i need help about stopping the process the prcess is driving a stepper motor i mean the button must stop all actions while my program sending data to parallel port, just like an emergency "stop button" or "cancel button in install application" thanks