Can't declare webbrowser windows service

Levu

Well-known member
Joined
Jun 13, 2007
Messages
51
Location
Norway - Drammen
Programming Experience
1-3
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..
VB.NET:
Expand Collapse Copy
Friend WithEvent browser1 as new webbrowser

Anyone know why?
 
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.
 
Back
Top