Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hey all trying to get this Open File Dialog to work...

When I hit cancel on the second time it adds the file to the list anyways

 

 

 

   Private Sub MenuItem3_Click(ByVal sender As System.Object,  ByVal e As System.EventArgs) Handles MenuItem3.Click
Dim ofd As New OpenFileDialog()
Dim lv As ListViewItem
     ofd.Title = "Select  FILE TO OPEN..."
       ofd.Filter = "All Files(*.*)|*.*"
       ofd.ShowDialog()
       If ofd.FileName = "" Then Exit Sub
lv = ListView1.Items.Add(ofd.filename
lv.subitem.add("test")
lv.subitem.add("testing")
end sub

 

 

Thank You

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...