Setting Enabled Property On Button/Form
Posted: Tue Aug 10, 2010 1:48 am
Hi,
I have some problems with setting up enabled property on the Cancel Button from the script editor. Can you tell me how can I set this from code?
My case is something like this:
- there is a form welcome with 2 buttons Cancel and Next (and this form is modal)
- When i press the next button it starts a process(exe file) that has a window form(it starts on top of the install app but I can go back to the install form - so it's not always on top/the only enabled form)
- the problem is that I have both forms enabled and I what to disable the install form(welcome) or to disable the buttons on the form(especially the Cancel button)
Also I don't want to disable the button from the start(as default).
How can I set from code the property of a button (something like CancelButton.enabled=false)
Thank you
I have some problems with setting up enabled property on the Cancel Button from the script editor. Can you tell me how can I set this from code?
My case is something like this:
- there is a form welcome with 2 buttons Cancel and Next (and this form is modal)
- When i press the next button it starts a process(exe file) that has a window form(it starts on top of the install app but I can go back to the install form - so it's not always on top/the only enabled form)
- the problem is that I have both forms enabled and I what to disable the install form(welcome) or to disable the buttons on the form(especially the Cancel button)
Also I don't want to disable the button from the start(as default).
How can I set from code the property of a button (something like CancelButton.enabled=false)
Thank you