File Open/Save dialog box ?

Posted on 2006-04-11
Last Modified: 2010-04-23

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.

Phil Miller
Question by:pillmill
    LVL 15

    Accepted Solution

    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
    LVL 19

    Assisted Solution


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
    A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
    This video discusses moving either the default database or any database to a new volume.
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now