Skip to content
⌘ NSIS Forum Archive

How to Hide Combobox Control

2 posts

dhiraj3301#

How to Hide Combobox Control

Hi Everyone,

I want to hide 1 combobox and label associated with that combobox at some specific condition,
I have written following code but is not working for me:



!insertmacro INSTALLOPTIONS_READ $mbMachineNameCombobox "InstallServerComponentsList.ini" "Field 22" "HWND"

ShowWindow $MachineNameCombobox ${SW_Hide}

!insertmacro INSTALLOPTIONS_READ $mbMachineNameLabel "InstallServerComponentsList.ini" "" "HWND"

ShowWindow $mbMachineNameLabel ${SW_Hide}




Please suggest solution for it,
Thanks in advance,

Thanks,
Dhiraj
Animaether#
Originally Posted by dhiraj3301 View Post
!insertmacro INSTALLOPTIONS_READ $mbMachineNameCombobox "InstallServerComponentsList.ini" "Field 22" "HWND"

ShowWindow $MachineNameCombobox ${SW_Hide}
Note that you're reading the value into a variable that starts with 'mb', then call ShowWindow on a different variable.