Dynamically validating text in a text box

Got a problem you cannot solve? Try here.
Ryan Lee
Posts: 26
Joined: Fri Jun 29, 2007 7:11 pm

Dynamically validating text in a text box

Postby Ryan Lee » Fri Jul 20, 2007 2:55 pm

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

MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Postby MichaelNesmith » Fri Jul 20, 2007 3:27 pm

Sorry, this is not currently available.
Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/

mr. dizzle
Posts: 8
Joined: Wed Jul 18, 2007 7:10 am

Postby mr. dizzle » Mon Jul 23, 2007 3:40 am

It seems that the dialogs are completely one way. ie. you can retrieve data from them, but cannot send information back.

MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Postby MichaelNesmith » Mon Jul 23, 2007 5:21 am

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.
Michael Nesmith

InstallAware

Home of The Next Generation MSI Installer

Get your free copy today - http://www.installaware.com/


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 55 guests