Click to See Complete Forum and Search --> : Creating Objects from Controls


Sanket Bakshi
July 16th, 2001, 08:34 AM
Hello,
I am a it new to VB.
I have a Inet control from Microsoft Internet Controls.
I cannot use a form as I have to use the code in a NT service.
Can anybody let me know as to how I can CREATE AN OBJECT OF A CONTROL SO THAT I CAN USE IT IN MY PROGRAM.

Please Help
Regards,
Sanket B
svbakshi@hotmail.com

sotoasty
July 16th, 2001, 02:47 PM
Ok, This is probably not the answer you are looking for, BUT...

Can you create a form, set the visible property to false, drop the inet control there and use that for your program. Although I am not sure what you are trying to do, I developed a quick app, to download a page from a web site using the inet control, an invisible form, and the NT service control on Microsoft's site.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnolectrl/html/msdn_ntsrvocx.asp

A copy of the project can be found at...

http://www.vbnotes.com/Tutorials/NTService.zip

This works on a 2000 Pro system.

Hope this helps