摘要: 大家可能在做login窗体时,会发现要是其中一个是由另一个弹出的,关掉主窗体,另一个窗体也会关闭。比如说有2个窗体,一个名字叫Login,另一个叫MainForm,我们在Login里写上dim f as new mainformf.showme.close这样当你运行时,login关闭时,mainform也关闭了。解决方法很简单:就是在Login里写上dim f as new mainformf....阅读全文
05 2007 档案
摘要: 最近作了一个项目要求与AD连接来进行权限控制。想法是Imports System.Security.PrincipalImports System.Security.Permissions代码是下面Private idWindows As WindowsIdentityPrivate prinWindows As WindowsPrincipalidWindows = WindowsIdentit...阅读全文
摘要: 在textbox中自动加上style="overflow-y:hidden"或者写入代码:TextBoxID.Attributes.Add("style", "overflow-y:hidden")阅读全文

