ComboBox- SelectionChanged event has old value, not new value

According to MSDN, e.AddedItems: Gets a list that contains the items that were selected. So you could use: private void OnMyComboBoxChanged(object sender, SelectionChangedEventArgs e) { string text = (e.AddedItems[0] as ComboBoxItem).Content as string; } You could also use SelectedItem if you use string values for the Items from the sender: private void OnMyComboBoxChanged(object sender, SelectionChangedEventArgs … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)