If (Environment.OSVersion.Platform = PlatformID.Win32NT) Then SetProcessWorkingSetSize(Process.GetCurrentProcess().Handle, -1, -1)
Dim myProcesses As Process() = Process.GetProcessesByName("WindowsApplication1123")
Dim myProcess As Process
'Dim ProcessInfo As Process
For Each myProcess In myProcesses
SetProcessWorkingSetSize(myProcess.Handle, -1, -1)
Catch ex As Exception
But all that does it lower the memory and then it raises very high after. So its like a fake memory change.
just to let everyone know, its a "bug" which Microsoft know about but haven't bothered to fix with webbrowser in VB.net it cannot be fixed at the time been. for repetitive process's please use HTTPwebRequest.