all groups > dotnet security > november 2005 >
You're in the

dotnet security

group:

Help with FileDialogPermission - I think



Help with FileDialogPermission - I think Martin Hart Turner
11/29/2005 5:39:28 PM
dotnet security: 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,
Re: Help with FileDialogPermission - I think Dominick Baier [DevelopMentor]
11/30/2005 1:42:44 AM
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

[quoted text, click to view]

Re: Help with FileDialogPermission - I think Martin Hart Turner
11/30/2005 11:54:40 AM
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]
Re: Help with FileDialogPermission - I think Alex
12/1/2005 3:28:18 PM
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]

AddThis Social Bookmark Button