When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.
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 );}