This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- how to create textbox at runtime?
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 15, 2009
08:37 AM
how to create textbox at runtime?
Hi,
How to create textbox, labels at runtime?
My requirement:
+ I need to show some textboxes & labels based on the features selected by the user.
+ If user selected 2 features i need to show 2 labels & 2 textbox to get some input.
+ I dont want to hide or disable controls(because if only one text box is displayed in the screen, remaining part will be blank)
Any suggestion to fulfill my requirement.....
How to create textbox, labels at runtime?
My requirement:
+ I need to show some textboxes & labels based on the features selected by the user.
+ If user selected 2 features i need to show 2 labels & 2 textbox to get some input.
+ I dont want to hide or disable controls(because if only one text box is displayed in the screen, remaining part will be blank)
Any suggestion to fulfill my requirement.....
(7) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 16, 2009
11:31 AM
Hi,
Can anyone give me a suggestion pls.....
Can anyone give me a suggestion pls.....
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 16, 2009
06:43 PM
What dialog would you like to perform these actions?
Before getting to the dialog set your property:
MsiSetProperty(hMSI, "MYTEXTBOXSHOULDBEON", 1);
Now in your dialog add a textbox "myTextbox"
Go to dialog's Behavior
Select your textbox "myTextbox"
At the bottom select the Conditions tab.
Set:
Action: Hide - Condition: NOT MYTEXTBOXSHOULDBEON
Action: Show - Condition: MYTEXTBOXSHOULDBEON
Hope this helps.
Yama
Before getting to the dialog set your property:
MsiSetProperty(hMSI, "MYTEXTBOXSHOULDBEON", 1);
Now in your dialog add a textbox "myTextbox"
Go to dialog's Behavior
Select your textbox "myTextbox"
At the bottom select the Conditions tab.
Set:
Action: Hide - Condition: NOT MYTEXTBOXSHOULDBEON
Action: Show - Condition: MYTEXTBOXSHOULDBEON
Hope this helps.
Yama
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 17, 2009
12:04 AM
Hi yamakamyar,
Thanks for your suggestion, your suggestion is helpful to me if I know how to resize or move text box in dialog box, because as I mention that if the user selected only one feature then remaining screen where the textboxes are hidden will be blank........ so is it possible to resize the controls at runtime?
Thanks for your suggestion, your suggestion is helpful to me if I know how to resize or move text box in dialog box, because as I mention that if the user selected only one feature then remaining screen where the textboxes are hidden will be blank........ so is it possible to resize the controls at runtime?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 04, 2009
07:24 AM
you can put the textboxes, labels in the dialogs and then show and hide them as per the condition.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 12, 2009
03:38 PM
I'm adding custom dialog with text box.The text box value will be used for XML file change.
The Custom dialog shows the text box - but the initial value is zero.
How to remove the zero.
please let me know.
The Custom dialog shows the text box - but the initial value is zero.
How to remove the zero.
please let me know.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 12, 2009
03:39 PM
In the Property Manager, find your edit field's property name and delete its "0" value.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 15, 2009
07:55 AM
Thank you very much.