I have two ActiveX controls written in VB6. The first one knows how to do a couple things with an image. The second one sits on top of the first control and knows how to create an email using CDO and send the image as an attachment.
What it DOESN'T know how to do is go away after I press the SEND button (does the email stuff.)
The function SEND does the email stuff then I try to use RaiseEvent Finished to make the email control go away.
Private Sub cmdEmail_Click()
RaiseEvent Finished <------
You can rightly assume I am not the world's greatest VB programmer. I thought "Finished" was a standard VB thing that would shut down the control.
I have "Public Event Finished()" declared at the top of my control.
I DON'T have any code written for "Finished", I thought that was a facility of VB. Maybe I'm wrong.
thanks in advance.