Page 1 of 1

Dynamically validating text in a text box

Posted: Fri Jul 20, 2007 2:55 pm
by Ryan Lee
I have a text box that requires the user to enter in some text (product key). This text is validated with a dll function after the user presses the next button. If invalid, I display a message box and loop back to this dialog. If valid, I go to the next dialog.

Would it be possible to dynamically (as the user changes the text in the edit box) enable/disable the next button so it is disabled until the correct text is entered?

Thanks in advance

Posted: Fri Jul 20, 2007 3:27 pm
by MichaelNesmith
Sorry, this is not currently available.

Posted: Mon Jul 23, 2007 3:40 am
by mr. dizzle
It seems that the dialogs are completely one way. ie. you can retrieve data from them, but cannot send information back.

Posted: Mon Jul 23, 2007 5:21 am
by MichaelNesmith
Of course you can send data back. Just associating a dialog control with a variable and writing to that variable from MSIcode, for example, is a way to set control default values. Just look at some of the pre-built dialogs and sample projects for examples.