Hack Forums
[.NET] WebBrowser [HELP] - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [.NET] WebBrowser [HELP] (/showthread.php?tid=2220686)



WebBrowser [HELP] - Qustom - Feb 17, 2012

I once did some webbrowser (standard) tests in Visual Basic 2008 Express and i didn't use it to more than fun.

Now I've been working on something basically the same but with a twist. There's an online game that i want to put into my program. Make it a desktop-version so to speak.

So here's the deal:
I've used iframe to a specific part of the site* to get 2 things:
1. the game window
2. the login window

www.unikkunst.com/index.html
www.unikkunst.com/login.html

Both of those sites i use in my program. I used a template to a simple webbrowser and then modified it a bit to default go to one of those sites.

But the thing is that when i log to www.unikkunst.com/login.html and i refresh unikkunst.com/index.html i get it to work. I use Google Chrome. It's like Chrome "knows" that i already logged in, in the other page.

But in my simple webbrowser it doesn't. I simply can't "tell" it that I AM logged in already.

What sort of code do i need to add so it remembers the other form (i created 2 forms) in Visual Basic 2008?

If somebody could help me out here i would be REALLY glad!
Thanks in advance :-)


* - Qustom - Feb 18, 2012

Well seems like no1 cares to read this huh? :(


* - Deceptive - Feb 18, 2012

I tried to sniff the post data but couldn't, you're going to have to look at the javascript and see what you can do off that.


* - MoBaT - Feb 18, 2012

Go off this website: "http://www.tanktrouble.com/"

The website you're using is an iframe which is pretty stupid, just use the original.


* - dbRenaud - Feb 18, 2012

Gotta say I Agreed with MoBaT ...! :)


* - Qustom - Feb 18, 2012

(Feb 18, 2012 03:37 PM)MoBaT Wrote:  Go off this website: "http://www.tanktrouble.com/"

The website you're using is an iframe which is pretty stupid, just use the original.

Well i made that iframe from that page tanktrouble.com
I mean its the whole thing about it.

In that way i only get the selected part of the page in my Webform in visual basic. I don't want the adds ect :-)


* - MoBaT - Feb 18, 2012

Login using HTTPWEBREQ which wont be hard, transfer the cookies to the webbrowser then load the game page.


* - Qustom - Feb 18, 2012

Sounds about it.
How do i do that? Could you elaborate please?