Witam,

private: System::Void driveListBox1_SelectedIndexChanged(System::Object sender, System::EventArgs e)
{
dirListBox1->Path=driveListBox1->Drive;
}
private: System::Void dirListBox1_SelectedIndexChanged(System::Object sender, System::EventArgs e)
{
fileListBox1->Path=dirListBox1->Path;

     }

private: System::Void fileListBox1_SelectedIndexChanged(System::Object sender, System::EventArgs e)
{

         pictureBox1->Load(fileListBox1->FileName);
           
                     
             }

Mam problem, jeśli wybiorę dany
plik graficzny np. z dysku E: to wywala mi błąd. Program czyta wyłącznie pliki z katalogu w którym się znajduje. Jakby ListBox'y nie były brane w ogóle pod uwagę. Chciałbym, abym mógł wybrać dowolny plik z dowolnej ścieżki.