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
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
:
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
: