hello,
I need waiting for button clic in sub (The user select an answer by clicing on button,tere is 6 buttons)
I check after clic if answer good or not
This is my "Doevent()" sub .Do not use Winform
Sub DoEvents()
Application.Current.Dispatcher.Invoke(DispatcherPriority.Background, New Action(Sub()
End Sub))
End Sub
This wwork with clic on label or other controls but with button i got always these casting error
"Impossible to do cast object type 'System.Windows.RoutedEventArgs' to type 'System.Windows.Input.MouseButtonEventArgs'.
Why?
Thank you for your help and Sorry for by bad English
Merci beaucoup