Anyone! Please revise my code!

Author Message
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)
0
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

 
#1
    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)
    0
    Please stop polluting the fora with off topic stuff.
     
    #2
      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)
      0
      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.
       
      #3
        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)
        0
        As your code is not VBScript, you may try

        Other-Programming/Scripting-Languages
         
        #4
          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)
          0
          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.
           
          #5
            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)
            0
            @moderators, please move these threads when you see them.
            To iterate is human, to recurse divine. -- L. Peter Deutsch
             
            #6
              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)
              0
              Pretty sure you could have moved it too...
              "... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
              Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
              http://www.visualbasicscript.com/m_47117/tm.htm
               
              #7

                Online Bookmarks Sharing: Share/Bookmark

                Jump to:

                Current active users

                There are 0 members and 1 guests.

                Icon Legend and Permission

                • New Messages
                • No New Messages
                • Hot Topic w/ New Messages
                • Hot Topic w/o New Messages
                • Locked w/ New Messages
                • Locked w/o New Messages
                • Read Message
                • Post New Thread
                • Reply to message
                • Post New Poll
                • Submit Vote
                • Post reward post
                • Delete my own posts
                • Delete my own threads
                • Rate post

                2000-2012 ASPPlayground.NET Forum Version 3.9