As usual while waiting for the next release - don't forget to check the nightly builds in the forum.
void SomeDialog::OnButton1Click(wxCommandEvent& event){ if ( FileDialog1->ShowModal() != wxID_OK ) return; wxString FileName = FileDialog1->GetFilename(); if ( FileName.IsEmpty() ) return; // FileName points to selected file wxMessageBox( FileName );}