Browse button

dwyane123

Member
Joined
Oct 14, 2008
Messages
23
Programming Experience
Beginner
Hey guys i did they browse button using this code

VB.NET:
  1.    Private Sub browseButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles browseButton.Click
   2.
          Using ofd As New OpenFileDialog
   3.
              ofd.Filter = "All files (*.*)|*.*"
   4.
              ofd.Title = "Select File"
   5.
       
   6.
              If ofd.ShowDialog() = Windows.Forms.DialogResult.OK Then
   7.
                  MessageBox.Show("You selected " & ofd.FileName)
   8.
              End If
   9.
          End Using
  10.
      End Sub

It did list me all the folders and files.

However if i created a folder in file my documents named "abc" and another sub folder inside abc. inside the sub folder there are other txt files. BUt using the browse button, i am not able to see or browse inside the sub folder Do any one know how 2 solve this problem? i am using visual studio 2005 vb.net .net compact framework for windows mobile 5

thanks alot
 
Back
Top