OpenFileDialog box question - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

OpenFileDialog box question

Matrix.netMatrix.net Posts: 38Member
Hi can someone please tell me how I could open a file for reading when the user clicks on the "open" button? Currently I'm able to show the open file dialog box but when I pick a file and click on "open" , nothing happens so if someone can tell me how I could open it for reading I would really appreciate it . Thank You

Comments

  • cheezy71cheezy71 Posts: 12Member
    Hi
    what type of file are you triny to open and for what purpose.
    I recently had the same problem, I was creating a media player.
    My example would be"
    [code] OpenFileDialog1.ShowDialog()
    AxMediaPlayer1.FileName = OpenFileDialog1.FileName
    [/code]

    This was used to open a media file into the windows media plyer.



    Hi can someone please tell me how I could open a file for reading when the user clicks on the "open" button? Currently I'm able to show the open file dialog box but when I pick a file and click on "open" , nothing happens so if someone can tell me how I could open it for reading I would really appreciate it . Thank You
    :

  • cheezy71cheezy71 Posts: 12Member
    Hi
    what type of file are you trying to open and for what purpose.
    I recently had the same problem, I was creating a media player.
    My example would be:
    [code]OpenFileDialog1.ShowDialog()
    AxMediaPlayer1.FileName = OpenFileDialog1.FileName
    [/code]

    This was used to open a media file into the windows media player.
    Hope this is helpful.



    Hi can someone please tell me how I could open a file for reading when the user clicks on the "open" button? Currently I'm able to show the open file dialog box but when I pick a file and click on "open" , nothing happens so if someone can tell me how I could open it for reading I would really appreciate it . Thank You
    :
Sign In or Register to comment.