View Full Version : VB2008 code help~>
here is my code:
Private Sub WebBrowser1_DocumentCompleted(ByVal sender As System.Object, ByVal e As System.Windows.Forms.WebBrowserDocumentCompletedEv entArgs)
WebBrowser1.Navigate("digitalgangster.com")
End Sub
K, that line is directly on the WebBrowser form making an ATTEMPT to navigate. Instead on compile, all I get is a whitescreen. So to see wtfxup, I did:
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
WebBrowser1.Navigate("digitalgangster.com")
End Sub
So, onclick of "button3", the webbrowser goes to DG. I want the prj to LOAD with DG in the browser. "WebBrowser1.Navigate("digitalgangster.com")" in the webbrowser onload should work, but it doesnt :\. holler.
bling
04-19-2008, 05:08 AM
watcha making :D
Nvm, you dont have to call the navigate, just add it to the webbrowser form properties. /wrists
bling
04-19-2008, 05:10 AM
watcha got der :D
it's not loading bc you put it into WebBrowser1_DocumentCompleted - and since there's nothing being completed its not running your code
just put the code into Form_Load()
:\
Audio
04-19-2008, 07:34 AM
it's not loading bc you put it into WebBrowser1_DocumentCompleted - and since there's nothing being completed its not running your code
just put the code into Form_Load()
:\
Word. figured it out. The new layout for 08 is pretty wild, so I kinda got lost in it. First night since Enterprise :\
iceman20
04-19-2008, 06:32 PM
Word. figured it out. The new layout for 08 is pretty wild, so I kinda got lost in it. First night since Enterprise :\
I just got 2008 this week. I'm switching over to C# code for projects here on out.
Word. I just got 08 lastnigth and decided to code a quick webbrowser form. Shit is pretty gangster. WAY different since the last time I touched any code. I love the layout, it's clean and much easier to use.
lol i dont even think the code is any different from vb.net
Mysterio
04-20-2008, 11:05 AM
I think he means it's a ton different than vb6 which was probably the last time he touched code. Which it is. I use 2005 but I <3 it.. I've almost completely migrated over and code everything in vb.net now and barely even touch vb6 anymore. It's so much nicer for everything. The little things make me orgasm like the lack of 32768 list limits on the regular listboxes anymore is orgasmic.
I think he means it's a ton different than vb6 which was probably the last time he touched code. Which it is. I use 2005 but I <3 it.. I've almost completely migrated over and code everything in vb.net now and barely even touch vb6 anymore. It's so much nicer for everything. The little things make me orgasm like the lack of 32768 list limits on the regular listboxes anymore is orgasmic.
Thats exactly what I meant!
iceman20
04-20-2008, 10:30 PM
Forget the claim by M$ that VB6 code can be automatically upgraded to .net - it's a lie. I still have to support old VB6 stuff in VB6 because updating it requires a line-by-line reprogramming. Fuck that when you have new projects to work on.
Word. I just got 08 lastnigth and decided to code a quick webbrowser form. Shit is pretty gangster. WAY different since the last time I touched any code. I love the layout, it's clean and much easier to use.
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.