Solved

VB Active Directory Common Dialogs ?

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Updates not working for MS Windows 7 12 181
Exit a vb6 apps when a calling it apps closes 15 52
VBA: Select SQL query based on a config Sheet v2 11 49
VB6 ListBox Question 4 48
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

790 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