How to change the button caption in a TOpenDialog (Views: 100)
I need a dialog for the user to select files to delete. The TOpenDialog works just fine except that the button says Open, and I need it to say Delete.
You will need to include Commdlg in your uses clause. In the TOpenDialog.OnShow event:
procedure TForm1.OpenDialog1Show(Sender: TObject);
SendMessage(GetParent(OpenDialog1.Handle), CDM_SETCONTROLTEXT, 1,
<< Back to main page