Results 1 to 7 of 7

Thread: [RESOLVED] [2008] combobox problem.. need help..

Hybrid View

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2006
    Posts
    242

    Resolved [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..?!
    < advertising link removed by moderator >

  2. #2
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    26,423

    Re: [2008] combobox problem.. need help..

    its not good programming practice to add items to a combobox in its own _SelectedIndexChanged event

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Mar 2006
    Posts
    242

    Re: [2008] combobox problem.. need help..

    im a beginer and im trying all with my best i can (((

    soo can u assist me please..?!
    < advertising link removed by moderator >

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    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.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  5. #5
    PowerPoster Deepak Sakpal's Avatar
    Join Date
    Mar 2002
    Location
    Mumbai, India
    Posts
    2,424

    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.

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    Mar 2006
    Posts
    242

    Re: [2008] combobox problem.. need help..

    ok thanks
    < advertising link removed by moderator >

  7. #7

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width