Tuesday, December 11, 2007

How to activate your open file dialog box

How to activate your open file dialog box

Step 1

In this example we will create another command button to allow activation of your dialog box when user hit it. Just double click on your button and then VB.NET shows your dialog box using the following codes.

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

OpenFileDialog1.ShowDialog()

End Sub

No comments: