vbhelp
-
Total Posts
:
10
- Scores: 0
-
Reward points
:
0
- Joined: 6/17/2011
-
Status: offline
|
Anyone! Please revise my code!
Saturday, July 02, 2011 9:05 AM
( permalink)
hey, I got this code for my web browser (not tabbed) to make links and pop ups open in a new window instance of my form and not internet explorer. There is only one problem with the code. It says that the object is not a member of Systems.Windows.Forms.Webbrowser This is the code i am using which is producing that error. Private Sub WebBrowser1_NewWindow2(ByVal ppDisp As Object, ByVal Cancel As Boolean) Dim frm As Form1 frm = New Form1 ppDisp = frm.WebBrowser1.Object frm.WebBrowser1.Object is the code that's not working. frm.Show() End Sub
|
|
|
|
ehvbs
-
Total Posts
:
3320
- Scores: 112
-
Reward points
:
0
- Joined: 6/22/2005
- Location: Germany
-
Status: offline
|
Re:Anyone! Please revise my code!
Saturday, July 02, 2011 9:07 AM
( permalink)
Please stop polluting the fora with off topic stuff.
|
|
|
|
vbhelp
-
Total Posts
:
10
- Scores: 0
-
Reward points
:
0
- Joined: 6/17/2011
-
Status: offline
|
Re:Anyone! Please revise my code!
Saturday, July 02, 2011 9:09 AM
( permalink)
Then where do you want me to post my stuff for Vbscript?? I'm posting in the places like that say discussion area for vbscript.
|
|
|
|
ehvbs
-
Total Posts
:
3320
- Scores: 112
-
Reward points
:
0
- Joined: 6/22/2005
- Location: Germany
-
Status: offline
|
Re:Anyone! Please revise my code!
Saturday, July 02, 2011 9:38 PM
( permalink)
As your code is not VBScript, you may try Other-Programming/Scripting-Languages
|
|
|
|
Wakawaka
-
Total Posts
:
456
- Scores: 23
-
Reward points
:
0
- Joined: 8/27/2009
-
Status: offline
|
Re:Anyone! Please revise my code!
Saturday, July 09, 2011 3:16 AM
( permalink)
ehvbs As your code is not VBScript, you may try Other-Programming/Scripting-Languages 2nd Also, the webbrowser control doesn't have a object property/method/event. So if you are trying to invoke something that doesn't exist it gives that error. Also, your event handler isn't wired, unless you do it in your code elsewhere are run-time instead of design time.
|
|
|
|
TNO
-
Total Posts
:
2094
- Scores: 36
-
Reward points
:
0
- Joined: 12/18/2004
- Location: Earth
-
Status: offline
|
Re:Anyone! Please revise my code!
Sunday, July 10, 2011 5:27 AM
( permalink)
@moderators, please move these threads when you see them.
To iterate is human, to recurse divine. -- L. Peter Deutsch
|
|
|
|
ebgreen
-
Total Posts
:
8219
- Scores: 98
-
Reward points
:
0
- Joined: 7/12/2005
-
Status: offline
|
Re:Anyone! Please revise my code!
Thursday, July 21, 2011 9:34 AM
( permalink)
Pretty sure you could have moved it too...
|
|
|
|