Hi all,

Was trying to write a dialog box and wanted to have a checkbox and a button in it.

When I click the button and the checkbox is checked, a command is performed.
When I click the button and the checkbox is NOT checked, another command is performed.

How do I do that? I can get the button to work. I just can't 'bind' the checkbox to it.
Can anyone pls give me a simple example code?

Thanks in advance for all replies.