km92 Posted May 3, 2008 at 10:51 AM Report Share #183153 Posted May 3, 2008 at 10:51 AM Boas. Estou a criar um projecto em vb.net, o qual só funciona correctamente se o utilizador for Administrador ou tiver direitos administrativos. A minha dúvida é como verifico isso no startup do programa. Desde já agradeço =D Link to comment Share on other sites More sharing options...
anolsi Posted May 3, 2008 at 01:10 PM Report Share #183170 Posted May 3, 2008 at 01:10 PM Faz isto: If My.User.IsInRole(ApplicationServices.BuiltInRole.Administrator) Then 'É Administrador Else 'Não é administrador End If "Nós somos o que fazemos repetidamente, a excelência não é um feito, e sim, um hábito."Não respondo a questões por PM que possam ser colocadas no fórum! Link to comment Share on other sites More sharing options...
km92 Posted May 3, 2008 at 07:59 PM Author Report Share #183239 Posted May 3, 2008 at 07:59 PM Funcionou 🙂 Obrigado pela ajuda 😉 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now