![]() |
|
|||||||
| Windows Services Windows service development discussion |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Just started trying to make a windows service.
And i want it to check something on the internett, but i cant find the webbrowser thing.. This works regularly.. But not now.. Cant find the webbrowser.. Code:
Friend WithEvent browser1 as new webbrowser
__________________
Vb.net njub |
|
||||
|
WebBrowser is a Windows.Forms control, controls and forms is not used in windows services, which don't have UI and interact with active desktop, and don't have a windows message loop. You should be able to use a WebRequest/WebClient.
__________________
Some useful links: Learning videoes, Code Samples, WMI Code Creator, MSDN, The Code Project, WindowsClient.net, ASP.net, W3 Schools, Regular-Expressions.info, GDI+ FAQ
How to format posts with code blocks etc - present the problem/post properly ![]() |
|
|||
|
Meaning it wont work at all?
I can add it from the design view at the Service.vb (the start class of service)
__________________
Vb.net njub |
|
||||
|
Use a WebClient, which is a non-visual object that will get and send data over the Internet.
__________________
Essential: Multiple Forms ● 101 Samples: 2002 | 2003 | 2005 ● Free Components: WFC | XPCC | ElementsEx | VBPP | ADO.NET/MySQL | VisualStyles | NPlot | SDF ● Tutorials: Home & Learn | Start VB.NET | Learn VB.NET ● Favourites: MSDN | WinForms.NET | ASP.NET | WinForms FAQ | WebForms FAQ | GotDotNet | Code Project | DevBuzz |
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|