Solved

VB Active Directory Common Dialogs ?

Posted on 2004-03-28
6
248 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
ID: 10699803
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
ID: 10699813
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
ID: 10702793
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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
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…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

785 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