Solved

Directory searcher with a combo box

Posted on 2011-03-01
2
845 Views
Last Modified: 2012-05-11
Hello experts

Im a bit new to vb.net 2008 and have been asked to write an app that works with active directory to assist with administration. Im not sure if its possible, but id like to be able to populate a combo box (Or other drop down box if necessary) with a list of users as you type in it (So like an autocomplete). Would this be possible using a directorysearcher object and combo box ? And if so could someone post how I would do it. Any help is greatly appreciated
0
Comment
Question by:Porka
2 Comments
 
LVL 53

Accepted Solution

by:
Dhaest earned 250 total points
ID: 35005540
0
 
LVL 7

Assisted Solution

by:FemSteenkamp
FemSteenkamp earned 250 total points
ID: 35005726
depending on the size of the AD it might not be a good idea since having thousands of users in a dropdown will be slow and not an ideal way of idnetifying which of the 30 "smiths" you actually want.

also populating the list initially can take quite a while, and although it can be cached you then have to figure out how to handle refreshes (i.e. new users created in AD since last query)

rather go for an initial search result based on some criteria to limit the returned result

research the ANR attribute in AD
http://support.microsoft.com/kb/243299/EN-US

and how attributes can be added to this to make searching easier in AD domain.
0

Featured Post

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question