摘要:
vb.net中使用sendkeys遥控:
大家在vb6中都用过sendkeys,幕通过发送键盘的事件间接地控制外部程序,是有遥控之说。
我在vb7中却发现这个不能用了, 也就不了了之,后来一次在查阅msdn的时候竟看到了这个,是以尝试了一下,竟然旧貌新颜,还是一样好用。
主要是在system.winforms族中找到sendkeys 使用方法同vb6
键:一般的字符键如下输入”a......
摘要:
在项目文件中添加新项-类(cconst.vb)
代码如下:
namespace api
public class cconst
implements istore
dim constlist as sortedlist
dim constlistcsharp as sortedlist
sub new()
constlist = new sortedlist()
co......
用C#在域中增加用户和邮箱
public int creatuser(string loginname)
{
string p_strdomainloginname="admin";
string p_strdomainloginpassword="";
string p_strdomainname="myweb.com";
string p_strdcname="dc=myweb,dc=com";
string p_strservername="myweb";
int returnvalue;
cdo.personclass pcuser;
cdoexm.imailboxstore mailbox;
string strldap="ldap://" + p_strdomainname + "/cn=" + loginname + ",cn=users," + p_strdcname;
string strhomemdburl="ldap://" + p_strdomainname + "/cn=mailbox store...
下一页 摘要:
viewer.vb剩余代码
private sub lstitem_selectedindexchanged(byval sender as system.object, byval e as system.eventargs) handles lstitem.selectedindexchanged
if lstitem.items.count > 0 then
se......