How to make a URL open invisibly VB.NET (Current code supplied)

Posts 1–3 of 3 · Page 1 of 1
How to make a URL open invisibly VB.NET (Current code supplied)
I want to know how I could change this code to make it invisible (page opens without the user seeing) I'm using it to create a silent page viewer me and my friends are running on our computers. I used MPGH as an example in the code

Here's the current code to do so visibly

Code:
Imports System
Imports System.Drawing
Imports System.Data
Imports System****
Imports System.Collections
Imports System.Windows.Forms
Imports System.Drawing.Printing

Public Class MainClass
    Shared Sub Main()
        System.Diagnostics.Process.Start("www.mpgh.net")
    End Sub
End Class
It's censoring part of the code for some reason, but I'm sure the good coders here will understand what it should show...
You could just make a webbrowser and move it off the screen, and locking the screen size.

and Implement something like this.

Code:
form1.load sub
dim x as integer = 0
timer1.start
timer1.interval = 1000 '1 second
if x = 5 then
webbrowser1.enabled = true 'you can chose the url in config
timer1.stop

timer1.tick sub
x = x + 1
Use HttpWebRequests/Responses to send page requests. You can also modify them to use a Proxy etc.

Code:
Private Sub SendPageRequest(ByVal URL As String, Optional ByVal proxy As Net.WebProxy = Nothing)
    Dim webReq As Net.HttpWebRequest = CType(Net.WebRequest.Create(URL), Net.HttpWebRequest)
    If proxy IsNot Nothing Then webReq.Proxy = proxy
    Using webResp As Net.HttpWebResponse = CType(webReq.GetResponse(), Net.HttpWebResponse)
        'Get the response, then close it as we don't actually need anything but to send the request.
    End Using
End Sub
Posts 1–3 of 3 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

Talk with us