Board index » delphi » OpenDialog and SaveDialog Troubles and sullutions
Wayne & Carr
![]() Delphi Developer |
Tue, 29 Jun 2004 04:42:59 GMT
OpenDialog and SaveDialog Troubles and sullutions
Hello all;
Thought that I would post this on here, since I did not get that many replies and solutions to the problem that I was having before. What was happening? My TOpenDialog and TSaveDialog would not keep the filter that I assigned to them in the Object Inspector [Filter] Properties. I could not for the life of figure this out. And it had been going on since prior to Christmas. Mike Orriss (TeamB and DevExpress) wanted me to post a sample source with the problem accruing to the Public.attachments. I tried and tried and it would work great. (guess Delphi got scared of TeamB) :~) So after not being able to re-create the problem. I decided to go into code under the [ open1click, save1click and saveas1click] buttons in my project and try the following. This works like a charm. So if anyone ever has this problem. Where their Open and SaveDialog (s) loose their Filter when they run the program. This is what you need to do. procedure TMainForm.Open1Click(Sender: TObject); OpenDialog1.Filter := ' '; But this cured the issue that I was having. Still do not know what caused Take Care and hope that this will help someone out one day. Thank You Wayne -- |