Hi, I'm pretty new at this, but I need some help
I just made an MP3 player that runs off the system tray.
It's pretty simple, just open a song, then it automatically plays it.
My question is, when I open a song and then click on Cancel in the Openfile Dialog, I get an error. Since no song is selected, it tries to call (My play button is called Play) Play->Click();
But since there is no song loaded into MediaPlayer1 I get an error.
Is there any way to simply not allow pressing Cancel in the OpenDialog? (I've been googling, and looking in C++Builder6, with no success)
Or any code snippet that would help is also appreciated.
Using C++Builder6.
Thanks
Ante
I just made an MP3 player that runs off the system tray.
It's pretty simple, just open a song, then it automatically plays it.
My question is, when I open a song and then click on Cancel in the Openfile Dialog, I get an error. Since no song is selected, it tries to call (My play button is called Play) Play->Click();
But since there is no song loaded into MediaPlayer1 I get an error.
Is there any way to simply not allow pressing Cancel in the OpenDialog? (I've been googling, and looking in C++Builder6, with no success)
Or any code snippet that would help is also appreciated.
Using C++Builder6.
Thanks
Ante