radika1234
Posts: 1
Joined: Mon Oct 09, 2023 1:38 pm

Adding file filters(.zip or any ) to browse

Hi,
I have a dialog in which I have 3 text boxes with browse for file and 1 text box with browse for folder(BrowseDlg) , wanted to browse the file with only .txt format for first 3 textboxes. I added a init event for first text box browse which has browse for file with property (AI_OFN_FILTERS) and argument ((*.txt)|*.txt) . The same event is automatically added for all browse including browse for folder. And if I remove for one others also are getting removed.

How can I make sure that browse for file with only .txt file is added to first 3 textboxes and not for browse folder?
Catalin
Posts: 6608
Joined: Wed Jun 13, 2018 7:49 am

Re: Adding file filters(.zip or any ) to browse

Hello and welcome to our forums,

I'm afraid I can't really tell why that happens.

If possible, could you please create a sample that reproduces this and forward it to me so I can have a better view on what the issue is here?

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”