I was thinking of it this way...
private void Form1\_Load(object sender, EventArgs e)
{
if ((Thread.CurrentPrincipal.IsInRole("admin"))) // admin in this case should be a domain name.
{
tabPage4.Hide();
}
else
{
MessageBox.Show("You must be a member of the Manager or Administrator's roles to view username and password information", "Insufficient Permissions",
MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
}
}
But now instead of
CurrentPrincipal.IsInRole
put something that will read the domain name. Something of that sort. I'll appreciate any help Thank you