I'm writing a test application using WPF (which I've never used before). I'm getting the following error on the MainWindow_Loaded() Event.
"MainWindow_Loaded() - Object reference not set to an instance of an object."
I'm guessing WPF forms don't initialize like a Windows Form and I've found that I can't just double-click on the WPF Form and have the "MainWindow_Loaded()" Event appear in the Code-behind. Here is my code below:
Private Sub MainWindow_Loaded(sender As Object, e As RoutedEventArgs) Handles Me.Loaded
tmr.Interval = 1
EyeClosed.Visibility = Windows.Visibility.Hidden
Catch ex As Exception
MessageBox.Show("MainWindow_Loaded() - " & ex.Message)