Click here to Skip to main content
16,009,407 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi good morning,

I'm having trouble on setting up cbperiod combobox to visible true, here are my codes;

If sheetName.SelectedItem.Text = "Processed Data" Then
cbperiod.Visible = True
End If

every time i select Processed Data, combobox cbperiod visible does not change to true.
Please Help

Thanks in advance
Posted
Updated 26-Mar-14 17:24pm
v2

cbperiod.Visible = True
cbperiod.checked = true
 
Share this answer
 
Comments
Cuculala 27-Mar-14 0:27am    
Hi AndrewCharlz, combobox does not have a property .checked
I don't know much about VB, So I'm giving your answer in the perspective of C#. Let me know if it is not working.

VB
If !IsPostBack
If sheetName.SelectedItem.Text = "Processed Data" Then
 cbperiod.Visible = True
 End If


-KR
 
Share this answer
 
Comments
Cuculala 27-Mar-14 1:21am    
Hi KR, thanks for your code but it doesn't work :(
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900