Archive: How to Hide Combobox Control


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


Originally posted by dhiraj3301
!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.