Thanks, the solution you provided works. The only issue is there is no option to hide the control when I launch first time. The static text is visible and the moment I enter the value and tab from the control, it hides.
I'll try setting the default value to 0 and check