galaxy2004
Newcomer
- Joined
- Apr 1, 2005
- Messages
- 6
I am using VB.Net 2005 to develop an application to send email via Groupwise.
here the code :
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
Try
objGroupwise = CreateObject("NovellGroupWareSession")
objAccount = objGroupwise.Login(UserID, , userPassword)
Catch ex As Exception
MsgBox("testing")
End Try
End Sub
---------------
It got "Cannot create ActiveX component" error message when it runs at the line - objGroupwise = CreateObject("NovellGroupWareSession") , but when I click the button (which runs this procedure) at the second time, it works fine.
i.e. it always fails at the first run, and succeeds at the second run.
For my guess, the activeX component is not ready to be used when the second line runs. If I am right, any suggestions to make sure the component is ready before I run next line ?
thanks
here the code :
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
Try
objGroupwise = CreateObject("NovellGroupWareSession")
objAccount = objGroupwise.Login(UserID, , userPassword)
Catch ex As Exception
MsgBox("testing")
End Try
End Sub
---------------
It got "Cannot create ActiveX component" error message when it runs at the line - objGroupwise = CreateObject("NovellGroupWareSession") , but when I click the button (which runs this procedure) at the second time, it works fine.
i.e. it always fails at the first run, and succeeds at the second run.
For my guess, the activeX component is not ready to be used when the second line runs. If I am right, any suggestions to make sure the component is ready before I run next line ?
thanks