How to browse the users and groups list ?

  • Thread starter Thread starter Massimo
  • Start date Start date
M

Massimo

Is there any way to show a dialog like the ones used by Windows 2000 or XP
to select users and groups from the local computer or a domain ?
I need to do some authentication/permissions stuff, and I find quite strange
nobody already had the necessity of such a dialog... and I fear writing it
from scratch could be quite painful :-/
Can anybody help ?

Massimo
 
Hi!

There's not a direct dialog which will do it from you, but you can create
yours by listing users using ADSI. Here's an example:
http://www.experts-exchange.com/Programming/Programming_Languages/Dot_Net/Q_20658471.html

Ok, that is exactly what I feared I'd have to do :-(
Anyway, wouldn't such a dialog be a nice addiction to Windows Forms ?
There are File Open, File Save, Print, Print Preview... I think a User
Chooser dialog would really fit in. Much more than a Color Chooser, for
example :-/

Massimo
 
Back
Top