• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 230
  • Last Modified:

File Open/Save dialog box ?

Hi:

Is there some VB code that I can use to invoke
the standard Windows File Open/Save dialog box ?

I want to insert a Browse/Upload file textbox in a web page.

I'm using Web Matrix for development.

Thanks,
Phil Miller
0
pillmill
Asked:
pillmill
2 Solutions
 
Solar_FlareCommented:
yes you can use this:

Dim od As OpenFileDialog = New OpenFileDialog
If od.ShowDialog = DialogResult.OK Then
   dim filename as string = od.Filename
   'do whatever with the filename
End If
0
 
Fahad MukhtarDistinguished EngineerCommented:
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now