Advertisement
botdotdot

Untitled

Jul 18th, 2011
382
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.29 KB | None | 0 0
  1. 'The wrong way
  2.     Private Sub OpenFileDialog1_FileOk(ByVal sender As System.Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles OpenFileDialog1.FileOk
  3.     'Code
  4.     End Sub
  5.  
  6. 'The right way
  7.             If OpenFileDialog1.ShowDialog() = DialogResult.OK Then
  8.         'Code
  9.         End If
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement