暗示"Windows用户组对话框".在Windows窗体应用程序中 [英] Implimenting the "Windows Users of Groups Dialog" in a Windows Forms Application

查看:67
本文介绍了暗示"Windows用户组对话框".在Windows窗体应用程序中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图隐含一个将在我的应用程序中创建将链接到Windows帐户的用户的UI.

I am trying to impliment a UI that will create a user within my application that will link to a Windows account.

我认为最简单的方法是使用已内置的用户和组"对话框浏览器,但无法找到它.

我想使用用户和组"对话框(与您要设置文件夹权限等的对话框相同)(表单的标题为选择用户,计算机或组).

The easiest way I can think to do this would be to use the already built in User and Groups dialog browse, but cannot find it anywere.

I would like to use the Users and Groups Dialog (the same one as when you want to set folder permissions etc.) (The Form is titled Select Users, Computers, or Groups).

我已经尝试过了,但是问题是代码在C ++中而不是c#中,并且.net版本会产生运行时错误(在Windows XP或更高版本上运行). http://www.codeproject.com/KB/winsdk/bfobjectselection2.aspx

I have tried this, but the problem is the code is in C++ and not c# and the .net version produces a runtime error (running on windows XP or higher). http://www.codeproject.com/KB/winsdk/bfobjectselection2.aspx

我想从浏览器表单中获取一个用户,并将其添加到我的应用程序允许的用户中.

I would like to get a user from the Browser Form and add it to the Users allowed in my application.

推荐答案

您可以找到一个所有活动目录通用对话框的.NET包装器,此处

http://adui.codeplex.com/ [ ^ ]
You can find a .NET wrapper for all the active directory common dialogs here,

http://adui.codeplex.com/[^]


这篇关于暗示"Windows用户组对话框".在Windows窗体应用程序中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆