Click here to Skip to main content
15,887,746 members
Home / Discussions / Visual Basic
   

Visual Basic

 
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 
Questionvideo streaming Pin
navyasri21-May-07 20:07
navyasri21-May-07 20:07 
AnswerRe: video streaming Pin
Dave Kreskowiak22-May-07 8:36
mveDave Kreskowiak22-May-07 8:36 
QuestionRe: video streaming Pin
gkumaresan19-Jul-09 0:06
gkumaresan19-Jul-09 0:06 
QuestionRe: video streaming Pin
gkumaresan19-Jul-09 0:09
gkumaresan19-Jul-09 0:09 
QuestionRe: video streaming Pin
gkumaresan19-Jul-09 0:11
gkumaresan19-Jul-09 0:11 
QuestionHttpWebRequest.GetResponse 403... but works with Fiddler! Pin
Jimmator21-May-07 17:19
Jimmator21-May-07 17:19 
AnswerRe: HttpWebRequest.GetResponse 403... but works with Fiddler! Pin
Jimmator22-May-07 7:17
Jimmator22-May-07 7:17 
GeneralRe: HttpWebRequest.GetResponse 403... but works with Fiddler! Pin
Dave Kreskowiak22-May-07 8:34
mveDave Kreskowiak22-May-07 8:34 
QuestionMultiline Listbox Pin
The ANZAC21-May-07 12:07
The ANZAC21-May-07 12:07 
AnswerRe: Multiline Listbox Pin
Dave Kreskowiak21-May-07 16:12
mveDave Kreskowiak21-May-07 16:12 
GeneralRe: Multiline Listbox Pin
The ANZAC21-May-07 17:03
The ANZAC21-May-07 17:03 

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.