Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using the INET control in a Class Module 2

Status
Not open for further replies.

robdon

Programmer
Joined
May 21, 2001
Messages
252
Location
ES
Hi,

I've just started to look a Class Modules, so I need a little help.

I'm trying to create a Class Module, that does my Internet connections transfers for me.

I need to add the 'inet' control to the class.

I belive I need to put...

Dim myINET as inet

But, how do I then start using it?

I though I had to create a 'new' instance of it, something like this, before I can start using it...

set myINET = New INET

But that line does compile...

Any clues, or am I going totaly in the wrong direction??

Thanks,

Rob Donovan



 
Since it's a control, you need to add it to a form - either in the main program and pass the inet object to the class or create a form for the class and place the control there - then it won't be accessible from the main program except via your class.

"I think we're all Bozos on this bus!" - Firesign Theatre [jester]
 
Hi,

Thanks for the tip, I guess I'll have to create a form in my class.

Rob.
 
>you need to add it to a form

Actually, not quite true; the Internet Transfer control is one of several controls that can be added and used via a reference rather than as a visual component

Try

Project/References/Browse

type MSINET.OCX for the filename in the resulting dialog box and click OPEN.

You should now see that you have a ticked reference to "Microsoft Internet Transfer Control 6.0 (SP6)" (yours may differ if you have a different VB service pack applied)



 
Hi,

Thats even better :)

Thanks,

Rob D.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top