(Solved) – show/hide textbox if comboxbox is null or not

  • by
(solved)-–-show/hide-textbox-if-comboxbox-is-null-or-not

first of all i want to say thanks for every person who respond me for my previous quesiton,
i have a combobox (list) and a textbox(key1), but i want to enable textbox IF combobox is not null, I tried to to this by this code

  Private Sub TextBox1_Change()

If IsNullOrEmpty(ComboBox1.Text) Then

TextBox1.Visible = False
TextBox1.Enabled = False


Else
TextBox1.Visible = True
TextBox1.Enabled = True
End If


End Sub

but the result is always the textbox1 is disabled, even if i choose from the list or combobox<>null

Leave a Reply

Your email address will not be published. Required fields are marked *