Click here to Skip to main content
15,906,708 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionDeploment project Pin
taherjaorawala22-May-07 0:26
taherjaorawala22-May-07 0:26 
AnswerRe: Deploment project Pin
kubben22-May-07 3:28
kubben22-May-07 3:28 
QuestionCann't find DLL entry point in **** dll [modified] Pin
AR Reddy21-May-07 23:24
AR Reddy21-May-07 23:24 
AnswerRe: Cann't find DLL entry point in **** dll Pin
MohammadAmiry22-May-07 0:22
MohammadAmiry22-May-07 0:22 
GeneralRe: Cann't find DLL entry point in **** dll Pin
AR Reddy22-May-07 4:27
AR Reddy22-May-07 4:27 
GeneralRe: Cann't find DLL entry point in **** dll Pin
Dave Kreskowiak22-May-07 8:53
mveDave Kreskowiak22-May-07 8:53 
QuestionTimer in vb.net Pin
Shrimali197521-May-07 23:06
Shrimali197521-May-07 23:06 
AnswerRe: Timer in vb.net Pin
koolprasad200321-May-07 23:15
professionalkoolprasad200321-May-07 23:15 
QuestionMultuUser Drawing Tool Pin
kantipudi21-May-07 22:21
kantipudi21-May-07 22:21 
AnswerRe: MultuUser Drawing Tool Pin
Dave Kreskowiak22-May-07 8:50
mveDave Kreskowiak22-May-07 8:50 
QuestionEncrypted Connection String in appSetting Pin
Ajeet mittal21-May-07 22:05
Ajeet mittal21-May-07 22:05 
AnswerRe: Encrypted Connection String in appSetting Pin
Dileep_Vickey22-May-07 2:00
Dileep_Vickey22-May-07 2:00 
GeneralRe: Encrypted Connection String in appSetting Pin
Dave Kreskowiak22-May-07 8:46
mveDave Kreskowiak22-May-07 8:46 
GeneralRe: Encrypted Connection String in appSetting Pin
Dileep_Vickey22-May-07 17:34
Dileep_Vickey22-May-07 17:34 
GeneralRe: Encrypted Connection String in appSetting Pin
Dave Kreskowiak23-May-07 15:15
mveDave Kreskowiak23-May-07 15:15 
AnswerRe: Encrypted Connection String in appSetting Pin
Dave Kreskowiak22-May-07 8:48
mveDave Kreskowiak22-May-07 8:48 
Questionhome folder Pin
Jayesh Talsaniya21-May-07 21:33
Jayesh Talsaniya21-May-07 21:33 
AnswerRe: home folder Pin
Dave Kreskowiak22-May-07 8:45
mveDave Kreskowiak22-May-07 8:45 
Questionactive directory Pin
Jayesh Talsaniya21-May-07 21:32
Jayesh Talsaniya21-May-07 21:32 
i am facing an error: "can not create activex control."
while creating a activex directory user home folder.
the code is as below:

Dim oContainer As ActiveDs.IADsContainer
Dim oUser As ActiveDs.IADsUser
Dim strFirstName As String
Dim strLastName As String
Dim strSAMAcctName As String
Dim strPassword As String
'Dim oGroup As DictionaryEntry
strFirstName = "First" 'Trim(Me.txtFirstName.Text)
strLastName = "Last" 'Trim(Me.txtLastName.Text)
strPassword = "password"
strSAMAcctName = LCase(Left(strFirstName, 1) & strLastName)
oContainer = GetObject("LDAP://dc=abc,dc=com")
oUser = oContainer.Create("user", "cn=" & strFirstName & " " & strLastName)
oUser.Put("displayName", strFirstName & " " & strLastName)
oUser.Put("FirstName", strFirstName)
oUser.Put("LastName", strLastName)
oUser.Put("sAMAccountName", strSAMAcctName)
oUser.Put("userPrincipalName", strSAMAcctName & "@abc.COM")
oUser.EmailAddress = strSAMAcctName & "@abc.com"
'oUser.homedrive = "U:"
oUser.HomeDirectory = "\\192.168.87.154\Home-drive\" & strSAMAcctName
Try
oUser.SetInfo()
Catch
MsgBox("User Already Exists", MsgBoxStyle.Critical, "UserExists!")
End Try
Try
If oUser.AccountDisabled = True Then
oUser.AccountDisabled = False
oUser.SetInfo()
End If
Catch ex As Exception
MsgBox("Error trying to enable account", MsgBoxStyle.Critical, "Enable Account Failed")
'Me.txtResults.Visible = True
End Try
Try
oUser.SetPassword(strPassword)
oUser.Put("pwdLastSet", 0)
oUser.SetInfo()
Catch ex As Exception
MsgBox("Error trying to enable account", MsgBoxStyle.Critical, "Enable Account Failed")
End Try

Jayesh Talsaniya
Questionhow to edit label in listview to specify column? Pin
charleslau285521-May-07 20:46
charleslau285521-May-07 20:46 
AnswerRe: how to edit label in listview to specify column? Pin
Dave Kreskowiak22-May-07 8:43
mveDave Kreskowiak22-May-07 8:43 
QuestionFile Handling Problem Pin
virendra_00721-May-07 20:31
virendra_00721-May-07 20:31 
AnswerRe: File Handling Problem Pin
CPallini21-May-07 21:06
mveCPallini21-May-07 21:06 
AnswerRe: File Handling Problem Pin
desperate_coder21-May-07 22:06
desperate_coder21-May-07 22:06 
AnswerRe: File Handling Problem Pin
Dave Kreskowiak22-May-07 8:40
mveDave Kreskowiak22-May-07 8:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.