I need to create an Inet object in code. WHat I thought I had to do was:
Dim Inet1 As New Inet
But this doesnt seem to work. Does anyone know how I can accomplish this? Thanks in advance.
Printable View
I need to create an Inet object in code. WHat I thought I had to do was:
Dim Inet1 As New Inet
But this doesnt seem to work. Does anyone know how I can accomplish this? Thanks in advance.
Do you have the internet transfer control added to your list of available controls? It won't work if its not there.
You have to add it as a Reference. Click Project > References > Microsoft Internet Transfer Control 6.0 (or whatever verson you have) and than in the Form Declarations:
And if you have VB5/VB6, just type Inet1. and a list will pop up. Than you can do what you wish.Code:Dim Inet1 As Inet
It doesn't say Microsoft Internet Transfer Control but it does say Microsoft Internet Controls. Which doesn't appear to be the same thing. Where can I get the reference for it? I have VB 6 if that helps.
Try looking in Components instead of References, that might be where it is.
Nope, if you add it as a Component, than you have to use the control on your form.
Click on References > Browse > and add MSInet.ocx.
It should be there in the list, but since you can't find it, just go to it by going straight to the file itself.
Ok, there it is (duh). Alright its workin' now thanks guys!