Wednesday 15 August 2012

Add Google Search to VB .NET Program


  • Open Visual Studio 2005/2008/2010
  • Open New Project as Windows Form
  • Drag and Drop these controls from Toolbar => Common Controls
  1. TextBox
  2. WebBrowser
  3. Button (Set Text property to "Search")
  • Open Button1 for coding, then put the following code:
        Dim txtsearch As String
        txtsearch = TextBox1.Text
        txtsearch = "https://www.google.com.pk/search?q=" & txtsearch
        WebBrowser1.Navigate(txtsearch)
  • Run the Program, type any thing in a textbook and Click Search. The WebBrowser will Google search that Word or phrase.
  • Click on the Images below To Clearly see them.




For Any Queries, Comment On the Comment Section Below!!


3 comments:

  1. This comment has been removed by a blog administrator.

    ReplyDelete
  2. Not just that, these pernicious online assaults can both take and wreck essential data in your PC, making an antivirus download not only a choice but rather a need.
    https://how-to-remove.org/malware/browser-hijacker-removal/easysearchit-com-removal/

    ReplyDelete