CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 2001
    Location
    Pune;India
    Posts
    10

    Creating Objects from Controls

    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
    [email protected]


  2. #2
    Join Date
    Sep 2000
    Location
    FL
    Posts
    1,452

    Re: Creating Objects from Controls

    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/de...n_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



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured