Windows Phone Developers

Saturday, April 17, 2010

How to get the selected value of listbox using C# code

The following code retrieves the value of listbox and the accompanying text

private void listBox1_SelectedValueChanged(object sender, EventArgs e)

The above method retrieves the displaytext (DisplayMember) and the selected value (DisplayValue) from the selected item of listbox Digg Technorati Delicious StumbleUpon Reddit BlinkList Furl Mixx Facebook Google Bookmark Yahoo
ma.gnolia squidoo newsvine live netscape tailrank mister-wong blogmarks slashdot spurl StumbleUpon

1 comment:

  1. listBox1.Text

    this small think i forgetting, thank for reminding....


    ReplyDelete :: Visual Studio 2005 :: Visual Studio 2008 :: Visual Basic 2005