[RESOLVED] [2008] combobox problem.. need help..
i have a small problem...
Code:
Private Sub languages1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles languages1.SelectedIndexChanged
languages1.Items.Add("web1")
End Sub
End Class
i used this to add items on the combobox list but is not adding whats wrong..?!
Re: [2008] combobox problem.. need help..
its not good programming practice to add items to a combobox in its own _SelectedIndexChanged event
Re: [2008] combobox problem.. need help..
im a beginer and im trying all with my best i can :((((
soo can u assist me please..?!
Re: [2008] combobox problem.. need help..
Quote:
Originally Posted by TetovaBoy
im a beginer and im trying all with my best i can :((((
soo can u assist me please..?!
Assist you with what? You haven't told us what you're trying to achieve. Remember these words: CLEAR, FULL. That's what your description of your problem needs to be. If the problem is described clearly and fully, then we can offer informed advice on what to do about it. If we don't know what you're actually trying to achieve then we can't tell you how to achieve it.
Re: [2008] combobox problem.. need help..
Items to the combo box are generally added in form load event, button's click event, but this is not mandatory. SelectedIndexChanged event is fired when you select a item in combo box. May be you are willing to add items to another combo box, but that is not the case. You are adding items to the same combo box on its SelectedIndexChanged event.
If you want to improve yourself then do the things step by step. Whenever you work with new controls then make habit to study the documentation of the controls first. From this you will get an idea of how the control works.
Re: [2008] combobox problem.. need help..
Re: [2008] combobox problem.. need help..
Quote:
Originally Posted by TetovaBoy
ok thanks :D
you are welcome :). You can now mark the thread as resolved if no more help is needed.