
232Microsoft Visual Studio 2010: A Beginner’s Guide
Figure 8-10 Readable button ID and event handler name
VB:
Class MainWindow
Private Sub Button1_Click(
ByVal sender As System.Object,
ByVal e As System.Windows.RoutedEventArgs)
End Sub
Private Sub NewOrderButton_Click(
ByVal sender As System.Object,
ByVal e As System.Windows.RoutedEventArgs) Handles
NewOrderButton.Click
End Sub
End Class