question about "textbox-browse for file" control set

This forum can be browsed by the general public. Posting is limited to current SAPIEN license holders with active maintenance and does not offer a response time guarantee.
Forum rules
DO NOT POST SUBSCRIPTION NUMBERS, LICENSE KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
User avatar
mlglenn
Posts: 18
Joined: Mon Nov 11, 2013 11:39 am

question about "textbox-browse for file" control set

Post by mlglenn » Thu Feb 18, 2016 9:11 am

working in sapien powershell studio 2015, i used a "textbox-browse for file" control set.
by default, when i browse for a file, it only sees *.txt files. Is there a way to change that to open for either "all files" or perhaps filter on "CSV" files?

User avatar
davidc
Posts: 5913
Joined: Thu Aug 18, 2011 4:56 am

Re: question about "textbox-browse for file" control set

Post by davidc » Thu Feb 18, 2016 9:41 am

You can change the filter of the OpenFileDialog in the designer:
Filter Property.png
Filter Property.png (16.17 KiB) Viewed 1863 times
For more information on the Filter property, please refer to the following MSDN article:

https://msdn.microsoft.com/en-us/librar ... ilter.aspx

David
David
SAPIEN Technologies, Inc.

User avatar
mlglenn
Posts: 18
Joined: Mon Nov 11, 2013 11:39 am

Re: question about "textbox-browse for file" control set

Post by mlglenn » Thu Feb 18, 2016 10:01 am

thanks for the help.... initially i had problems finding where to make adjustments to the filter, but finally noticed the "openfiledialog1" box in the lower left of the ISE, again, thanks for the help