Solved

Directory searcher with a combo box

Posted on 2011-03-01
2
841 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

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
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…

831 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