Solved

Directory searcher with a combo box

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
This video discusses moving either the default database or any database to a new volume.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

760 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now