Solved

VB Active Directory Common Dialogs ?

Posted on 2004-03-28
6
245 Views
Last Modified: 2012-05-04
Hi all

I was wondering if there is a way to use the dialog box which is used in win2k to add users to groups inside a vb program ? I would assume it is similar to a common dialog but can not find any mention of it on the web anywhere, any help greatly appreciated

Thanks
0
Comment
Question by:Porka
6 Comments
 
LVL 76

Accepted Solution

by:
David Lee earned 500 total points
Comment Utility
The dialog box you're talking about belongs to  Microsoft Management Console (MMC).  I can't find anything about it being a common dialog box.  Nor can I find anything about using MMC snap-ins from within VB.  I did find out that there is a software development kit from Microsoft that allows the building of MMC snap-ins from Visual Basic.  Here's a link to that information: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/mmc/mmc/vb_mmc_snap_in_designer_for_visual_basic.asp  I don't know of any way to access the subject dialog box from a VB program.  However, you could always use the Shell command to launch MMC and, probably, load the correct snap-in.  Sorry, that's all I can offer on the subject.  Hope it helps.
0
 
LVL 11

Expert Comment

by:YohanShminge
Comment Utility
Yep, if you wanted a way to add users to groups easily, you could always shell the "net localgroup "Groupname" "Username" /add" command.
0
 
LVL 6

Author Comment

by:Porka
Comment Utility
I wanted to use the dialog box to search for users and select them for editing in vb, the example of adding to a group was just so that it wasnt confusing for which dialog box i meant.

Thanks for the link, im going to check it out now
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

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

771 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

8 Experts available now in Live!

Get 1:1 Help Now