cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
anilkumar_mca
Level 8

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.....
Labels (1)
0 Kudos
(7) Replies
anilkumar_mca
Level 8

Hi,
Can anyone give me a suggestion pls.....
0 Kudos
yamakamyar
Level 6

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
0 Kudos
anilkumar_mca
Level 8

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?
0 Kudos
ChandanOmkar
Level 8

you can put the textboxes, labels in the dialogs and then show and hide them as per the condition.
0 Kudos
revathi_kalaiva
Level 2

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.
0 Kudos
RobertDickau
Flexera Alumni

In the Property Manager, find your edit field's property name and delete its "0" value.
0 Kudos
revathi_kalaiva
Level 2

Thank you very much.
0 Kudos