End Google Ads 201810 - BS.net 01 --> Hi

I have a desktop C# application that is basically built on Tab control. I have 8 tabs and i need to have different domains to be selected(e.g Admin, clerk, bursar, secretary) on my login where when a user under a specific domain clicks on a certain tab, an event is generated that prevents him from viewing the content of that tab. 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