well maybe this is an easier to understand example
Dim ident As System.Security.Principal.WindowsIdentity =
System.Security.Principal.WindowsIdentity.GetCurrent()
Dim user As New System.Security.Principal.WindowsPrincipal(ident)
If Not (user.IsInRole(Security.Principal.WindowsBuiltInRole.Administrator))
Then
Me.Visible = False
MsgBox("Settings form only availlable for Administrators ! ",
MsgBoxStyle.DefaultButton3)
Me.Close()
End If
Michel Posseth [MCP]
thanks, I think it does but life would be much easier if someone at MS
spoke English!