Hello,
"Wayne Taylor" <(E-Mail Removed)> schrieb:
> [C#]
> DirectoryEntry usr =
> new DirectoryEntry("LDAP://CN=Old User,CN=users,DC=fabrikam,DC=com");
> int val = (int) usr.Properties["userAccountControl"].Value;
> usr.Properties["userAccountControl"].Value = val | ADS_UF_ACCOUNTDISABLE;
> usr.CommitChanges();Can anyone convert this into VB.NET code,
please.Thanks
> in advance, Wayne..Microsoft ...... why don't you produce all examples in
C# -> VB .NET Converters:
http://www.kamalpatel.net/ConvertCSharp2VB.aspx
http://csharpconverter.claritycon.com/Default.aspx
http://www.ragingsmurf.com/vbcsharpconverter.aspx
http://www.icsharpcode.net/OpenSource/SD/Default.aspx
http://www.remotesoft.com/
-> "Octopus"
--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet