Solved

VB Active Directory Common Dialogs ?

Posted on 2004-03-28
6
247 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VB6 Compile Compatibility Issue 4 90
Best way to parse out a json string in VB6? 10 116
How does CurrentUser work? 10 31
Access Object Property from VBA Module in Excel 2010 2 28
I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
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…
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…

863 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

23 Experts available now in Live!

Get 1:1 Help Now