Dominick:
I might be getting confused here.
What I want to do is launch an OpenFileDialog/SaveFileDialog so the user
can select a path/file. Once the user pushes 'OK' I'll do the work
behind the scenes of loading of saving the file.
What I don't want is for the user to be able to delete or copy files/
folders while they have the OpenFileDialog o SaveFileDialog open.
That is what I thought the FileDialogPermission was for. If this is not
the case, what can I use to achieve the desired effect?
TIA,
MartinH.
Dominick Baier [DevelopMentor] escribió:
[quoted text, click to view] > Hello Martin Hart Turner "martin _dot_ hartturner _at_ gmail.com,
>
> what kind of application is this..permissions are only relevant for
> partial trust apps.
>
> The FileDialogPermission will only help if you get to the file by using
> the GetStream() method of the dialog.
>
> ---------------------------------------
> Dominick Baier - DevelopMentor
>
http://www.leastprivilege.com >
>> Hi:
>>
>> I think I need to user the FileDialogPermission permission, but I'm
>> not sure :-/
>>
>> I want to allow the user to select a file to open/save via a common
>> dialog, but I don't want them to be able to delete/create/copy
>> anything. Is this the right permission for the scenario?
>>
>> I would appreciate any help you can offer.
>>
>> TIA,
>> MartinH.
>
You can try to use our Dialog Workshop .NET components. It's custom
Open/Save dialogs can be used with disabled delete/rename commands (both
context menu and keyb commands can be disabled).
Please visit
http://www.componentage.com for details.
Alexander
"Martin Hart Turner" <"martin _dot_ hartturner _at_ gmail.com"> wrote in
message news:eCvO6NQ9FHA.1276@TK2MSFTNGP09.phx.gbl...
[quoted text, click to view] > Hi:
>
> I think I need to user the FileDialogPermission permission, but I'm not
> sure :-/
>
> I want to allow the user to select a file to open/save via a common
> dialog, but I don't want them to be able to delete/create/copy anything.
> Is this the right permission for the scenario?
>
> I would appreciate any help you can offer.
>
> TIA,
> MartinH.