X
xamman
hello! anyone ever manage to do this? after trying nearly everything
i
can think of my code (below) still gives 'request for principal
permissions failed' .
many thanks
x
..
..
..
..
..
..
Protecting to class - this doesnt work (& the tried
role:="administrators", name:="administrator" etc)
< PrincipalPermissionAttribute(SecurityAction.Demand, Role:="BUILTIN
\Administrators") _
Public Class Form1 Inherits System.Windows.Forms.Form
Private Sub Form1_Load(ByVal sender As System.Object, ByVal and As
System.EventArgs) Handles MyBase.Load
Messagebox("form should load if user is admin")
End Sub
if you need more details about this problem:
http://groups.google.com/group/micr...a75256b91e7/001879dbbf09528d#001879dbbf09528d
i
can think of my code (below) still gives 'request for principal
permissions failed' .
many thanks
x
..
..
..
..
..
..
Protecting to class - this doesnt work (& the tried
role:="administrators", name:="administrator" etc)
< PrincipalPermissionAttribute(SecurityAction.Demand, Role:="BUILTIN
\Administrators") _
Public Class Form1 Inherits System.Windows.Forms.Form
Private Sub Form1_Load(ByVal sender As System.Object, ByVal and As
System.EventArgs) Handles MyBase.Load
Messagebox("form should load if user is admin")
End Sub
if you need more details about this problem:
http://groups.google.com/group/micr...a75256b91e7/001879dbbf09528d#001879dbbf09528d