Page 1 of 2 12 LastLast
Results 1 to 15 of 28
  1. #1
    zmansquared's Avatar
    Join Date
    Oct 2008
    Gender
    male
    Location
    Kickin it at Microsoft
    Posts
    2,086
    Reputation
    36
    Thanks
    221
    My Mood
    Cheerful

    Exclamation Web browser help

    Hey guys, this is nothing related to hacking. I am on a high school robotics team and i am making us a web browser. So i have a few questions

    1. I made a web browser, and added a link label. when i click the link it open a mozzila firefox page to the link. I want to site to open in my browser.

    How would i do that? (code is WebBrowser1.Navigate(TextBox1.Text)) for browser

    2. If the user goes to a site on my browser and gets a pop up, the pop up open in firefox. How would i make it either open in my browser? or in a new window in my browser?

    Any help is appreciated. Thanks
    Need Help With Coding or Something??? MSN me
    zmansquared@hotmail.com


    I am the one and only Microsoft Fag!!!

    Quote:
    Originally Posted by Arhk
    All games should be hacked, if we don't do it someone else will. Hackers force the progress, of better programming methods.
    ~


    Take this Pic everyone!



    next-

  2. #2
    Obama's Avatar
    Join Date
    Dec 2008
    Gender
    male
    Location
    The Black house
    Posts
    22,195
    Reputation
    870
    Thanks
    6,076
    My Mood
    Cool
    Ill ask Arun, so basically you want to set your browser as the default browser. Correct?

  3. #3
    zmansquared's Avatar
    Join Date
    Oct 2008
    Gender
    male
    Location
    Kickin it at Microsoft
    Posts
    2,086
    Reputation
    36
    Thanks
    221
    My Mood
    Cheerful

    Exclamation

    I made a web browser, when button1 is clicked it goes to the url. How can i make it search when i hit the enter key? right now i have to click on the actually go button. whats the code?

    Thanks.

    Nah, I want to make sure everything runs through my browser and DOES NOT auto open ie or firefox.
    Last edited by Obama; 02-13-2010 at 11:27 PM.
    Need Help With Coding or Something??? MSN me
    zmansquared@hotmail.com


    I am the one and only Microsoft Fag!!!

    Quote:
    Originally Posted by Arhk
    All games should be hacked, if we don't do it someone else will. Hackers force the progress, of better programming methods.
    ~


    Take this Pic everyone!



    next-

  4. #4
    Obama's Avatar
    Join Date
    Dec 2008
    Gender
    male
    Location
    The Black house
    Posts
    22,195
    Reputation
    870
    Thanks
    6,076
    My Mood
    Cool
    Quote Originally Posted by zmansquared View Post
    Nah, I want to make sure everything runs through my browser and DOES NOT auto open ie or firefox.
    Thats what I just said and FYI I merged your threads, theres no need to make 2 threads for 2 questions.

  5. #5
    zmansquared's Avatar
    Join Date
    Oct 2008
    Gender
    male
    Location
    Kickin it at Microsoft
    Posts
    2,086
    Reputation
    36
    Thanks
    221
    My Mood
    Cheerful
    LOl, thanks
    Need Help With Coding or Something??? MSN me
    zmansquared@hotmail.com


    I am the one and only Microsoft Fag!!!

    Quote:
    Originally Posted by Arhk
    All games should be hacked, if we don't do it someone else will. Hackers force the progress, of better programming methods.
    ~


    Take this Pic everyone!



    next-

  6. #6
    Lolland's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Location
    Lolland!
    Posts
    3,156
    Reputation
    49
    Thanks
    868
    My Mood
    Inspired
    1:
    Under linklabel.click:
    Webbrowser1.navigate("url here")

    2: Something with Javascript I believe, I might work on it later.

  7. The Following User Says Thank You to Lolland For This Useful Post:

    zmansquared (02-14-2010)

  8. #7
    zmansquared's Avatar
    Join Date
    Oct 2008
    Gender
    male
    Location
    Kickin it at Microsoft
    Posts
    2,086
    Reputation
    36
    Thanks
    221
    My Mood
    Cheerful
    sweet thanks
    Need Help With Coding or Something??? MSN me
    zmansquared@hotmail.com


    I am the one and only Microsoft Fag!!!

    Quote:
    Originally Posted by Arhk
    All games should be hacked, if we don't do it someone else will. Hackers force the progress, of better programming methods.
    ~


    Take this Pic everyone!



    next-

  9. #8
    NextGen1's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Not sure really.
    Posts
    6,312
    Reputation
    382
    Thanks
    3,019
    My Mood
    Amazed
    Webbrowser Control has a "New_Window" extension, which allows you to control the new window.


     


     


     



    The Most complete application MPGH will ever offer - 68%




  10. The Following User Says Thank You to NextGen1 For This Useful Post:

    hopefordope (02-16-2010)

  11. #9
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,915
    Reputation
    161
    Thanks
    3,108
    Quote Originally Posted by zmansquared View Post
    I made a web browser, when button1 is clicked it goes to the url. How can i make it search when i hit the enter key? right now i have to click on the actually go button. whats the code?

    Thanks.

    Nah, I want to make sure everything runs through my browser and DOES NOT auto open ie or firefox.
    Code:
     Private Sub TextBox1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles TextBox1.KeyDown
            If (e.KeyCode = Keys.Enter) Then
                Button1_Click(sender, e)
            End If
        End Sub



  12. #10
    NextGen1's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Not sure really.
    Posts
    6,312
    Reputation
    382
    Thanks
    3,019
    My Mood
    Amazed
    Quote Originally Posted by Blubb1337 View Post
    Code:
     Private Sub TextBox1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles TextBox1.KeyDown
            If (e.KeyCode = Keys.Enter) Then
                Button1_Click(sender, e)
            End If
        End Sub
    I think he wants his link to open in "His Browser" instead of the default browser, which requires nothing more then generating a New Window and WebBrowser upon button click


     


     


     



    The Most complete application MPGH will ever offer - 68%




  13. #11
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,915
    Reputation
    161
    Thanks
    3,108
    My post related to this quotation:

    I made a web browser, when button1 is clicked it goes to the url. How can i make it search when i hit the enter key? right now i have to click on the actually go button. whats the code?



  14. #12
    zmansquared's Avatar
    Join Date
    Oct 2008
    Gender
    male
    Location
    Kickin it at Microsoft
    Posts
    2,086
    Reputation
    36
    Thanks
    221
    My Mood
    Cheerful
    OK the enter button question is fixed.

    NEW QUESTION : when a website open a pop up, right now it open in firefox. I want the pop to open in my browser.

    code for that?
    Need Help With Coding or Something??? MSN me
    zmansquared@hotmail.com


    I am the one and only Microsoft Fag!!!

    Quote:
    Originally Posted by Arhk
    All games should be hacked, if we don't do it someone else will. Hackers force the progress, of better programming methods.
    ~


    Take this Pic everyone!



    next-

  15. #13
    NextGen1's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Not sure really.
    Posts
    6,312
    Reputation
    382
    Thanks
    3,019
    My Mood
    Amazed
    'A new window will be triggered when a link is clicked
    'e.cancel will stop your default browser from opening

    Code:
    Private Sub WebBrowser1_NewWindow(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles WebBrowser1.NewWindow
     
    Dim mybr As HtmlElement = WebBrowser1.Document.ActiveElement
    Dim tlink As String = mybr.GetAttribute("href")       
    
            Dim newweb As New Form1
            newweb.Show()
            newweb.WebBrowser1.Navigate(tlink)
    
            
            e.Cancel = True
        End Sub
    With this code whenever you click a link that opens _Blank / _New or if you right click and open link in new window , it will popup a form (copy of form1 in this case) and display the contents.
    Last edited by NextGen1; 02-14-2010 at 12:32 PM.


     


     


     



    The Most complete application MPGH will ever offer - 68%




  16. #14
    zmansquared's Avatar
    Join Date
    Oct 2008
    Gender
    male
    Location
    Kickin it at Microsoft
    Posts
    2,086
    Reputation
    36
    Thanks
    221
    My Mood
    Cheerful
    e.Cancel = True

    is not a member or something.

    say you go to a site in my browser, then a pop up comes up it will open in ie or fox. i want it to open in my brower (the pop up)
    Need Help With Coding or Something??? MSN me
    zmansquared@hotmail.com


    I am the one and only Microsoft Fag!!!

    Quote:
    Originally Posted by Arhk
    All games should be hacked, if we don't do it someone else will. Hackers force the progress, of better programming methods.
    ~


    Take this Pic everyone!



    next-

  17. #15
    zmansquared's Avatar
    Join Date
    Oct 2008
    Gender
    male
    Location
    Kickin it at Microsoft
    Posts
    2,086
    Reputation
    36
    Thanks
    221
    My Mood
    Cheerful
    ok it works but when the new page trys to open i get an IE script error

    also if i right click a link while using my browser and click open in new tab i get a script error
    Last edited by zmansquared; 02-14-2010 at 12:39 PM. Reason: more
    Need Help With Coding or Something??? MSN me
    zmansquared@hotmail.com


    I am the one and only Microsoft Fag!!!

    Quote:
    Originally Posted by Arhk
    All games should be hacked, if we don't do it someone else will. Hackers force the progress, of better programming methods.
    ~


    Take this Pic everyone!



    next-

Page 1 of 2 12 LastLast

Similar Threads

  1. vb web browser help
    By swor15 in forum Visual Basic Programming
    Replies: 6
    Last Post: 12-15-2010, 08:30 PM
  2. [Help]Web browser[Solved]
    By Flash in forum Visual Basic Programming
    Replies: 9
    Last Post: 08-30-2010, 02:29 AM
  3. web browser help
    By hopefordope in forum Visual Basic Programming
    Replies: 1
    Last Post: 06-14-2010, 03:00 PM
  4. [Help] Web browser Components[Solved]
    By Erinador in forum Visual Basic Programming
    Replies: 12
    Last Post: 06-08-2010, 09:23 AM
  5. Help with tabs in web browser
    By Laxitive in forum Visual Basic Programming
    Replies: 8
    Last Post: 11-12-2009, 11:56 PM