Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9005211
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T01:05:00+00:00 2026-06-16T01:05:00+00:00

I followed the instructions at http://msdn.microsoft.com/en-us/library/system.windows.forms.combobox.selectionchangecommitted.aspx but i have some trouble. First, this box

  • 0

I followed the instructions at http://msdn.microsoft.com/en-us/library/system.windows.forms.combobox.selectionchangecommitted.aspx but i have some trouble.

First, this box is empty and disabled. Then, when a search is done, it fills this combobox with values. Let’s say the values are 0=>"", 1=>"My first value", 2="My second value". I then have a handler on this box and it does trigger every time i change the value, looks like this

Private Sub MyComboBox_SelectionChangeCommitted(ByVal sender As Object, ByVal e As EventArgs) Handles MyComboBox.SelectionChangeCommitted

    MsgBox(MyComboBox.SelectedText)

End Sub

If i now select number 1, I get “” in the message box. If i then select number 2, i get “My first value” and so on. It’s one step behind. It trigger before the value has changed. How can i tell it do wait for this value and after that trigger the msgbox?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T01:05:01+00:00Added an answer on June 16, 2026 at 1:05 am

    MSDN specifically warns about that. SelectedText is the wrong property, you should only use it to retrieve the text that the user selected inside the textbox portion of the combobox. You do get all text selected after changing the index but that doesn’t happen until after this event runs. Use SelectedItem.ToString() instead.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've followed the instructions in this MSDN article: http://msdn.microsoft.com/en-us/library/dd206945.aspx Is it possible to call
I've followed the instructions here http://msdn.microsoft.com/en-us/library/ms464040.aspx to the letter, when I run disco.exe I
I have followed instruction from other posts and from http://msdn.microsoft.com/en-us/library/xwb8f617.aspx to give strong name
I have followed the instructions here: http://help.github.com/win-set-up-git/ to set up git on my windows
I am following the Microsoft tutorial for creating my first sharepoint 2013 app. (http://msdn.microsoft.com/en-us/library/fp142379.aspx
I followed the instructions here http://support.microsoft.com/kb/825532 After that when I preview my page, I
I have followed the instructions on http://railscasts.com/episodes/147-sortable-lists for creating a sortable list. The list
I have followed the instructions found at http://code.google.com/p/pubsubhubbub/wiki/DeveloperGettingStartedGuide to setup a hub. When I
I followed instructions on http://twitter.github.com/bootstrap/javascript.html#dropdowns to enable a dropdownlist in my navigation bar but
So I've followed the instructions here: http://doganberktas.com/2010/09/14/amazon-s3-and-paperclip-rails-3/ In my profile model I have: attr_accessor

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.