Advertisement
ra1n

Select from Index

Nov 25th, 2014
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.20 KB | None | 0 0
  1. public void GetIndexValues()
  2. {
  3.     var values = new string[] { "1", "2", "3" };
  4.     if (ComboBox.SelectedIndex > -1)
  5.     {
  6.         Console.WriteLine("Selected Value is: " & values[ComboBox.SelectedIndex]);
  7.     }
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement