[quote=336789:@Michel Bujardet]You said above you had created a class. Actually no need. Here is what you do :
SMailSocket = New SMTPSocket
[/quote]
Hello, I created a class (MailSocket) to implement the event management on it. Don’t know how to do in the property. There is Ralph’s answer about that, but doesn’t understand at all (I said you: Completly lost, doesn’t have enough level! )
For the record, here is my post from 2 days ago, the third one in this thread :
[quote=336789:@Michel Bujardet]Yes, add the SMTPSocket as a property.
mySMTPSocket as SMTPSocket
Initialize it in Session Open as
mySMTPSocket = New SMTPSocket
And then instead of simply calling it like mySMTPSocket, prefix it with Session :
Session.mySMTPSocket
It should be pretty easy to refactor your present code.[/code][/quote]
If i do this, (but with MailSocket instead SMTPSocket, to manage the implemented events)
SMailSocket = New MailSocket
(The class with implemented events), then in (From MailSocket As SMTPSocket):
Sub MailSent()
WebPage1.TextFieldName.Text=""
WebPage2.TextFieldEmail.Text=""
MsgBox("Your request was sent. There is a copy in your mailbox.")
End Sub
In WebPage1.TextFieldName.Text="" get a NilObjectException…