Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Return value from list box without the use of a button
#2
Insert before the ShowDialog line:

C# code:
listbox1.SelectionChanged+=(_,e)=> {
    var s = listbox1.SelectedItem as string;
    print.it("SelectionChanged", s, listbox1.SelectedIndex);
};


Messages In This Thread
RE: Return value from list box without the use of a button - by Gintaras - 02-12-2022, 01:58 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)