Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

checked and unchecked always false

$
0
0

Hi, I have checkbox and want to do something in my code depend on is isChecked true or false. So, here is the code:  

Private Sub My_Check(sender As Object, e As RoutedEventArgs) Handles My_Check.Checked, My_Check .Unchecked

MsgBox(My_Check.IsChecked.ToString)

End Sub

I can check and uncheck it million times, but IsChecked property is always False. Why?..


Aleksey


Viewing all articles
Browse latest Browse all 18858

Trending Articles