Try this,
WindowsIdentity ident = WindowsIdentity.GetCurrent();
WindowsPrincipal prin = new WindowsPrincipal(ident);
// User authenticated?
if (ident.IsAuthenticated)
{
// User is administrator or in MyAppGroup?
if (!prin.IsInRole("Administrator") && !prin.IsInRole("MyAppGroup"))
{
// Show login form
}
}
else
{
// Show login form
}

Signature
Carsten Thomsen
Senior .NET Solutions Architect / Developer / Author
MCAD/MCSD/MCSE/MCTS
> Hey
>
[quoted text clipped - 29 lines]
> Kind regards
> Johnny E. Jensen