Google search engine source code for windows applications

Source: Internet
Author: User
Tags knowledge base
I often feel that it is quite troublesome to use www.google.com to search for a website. I checked the MSDN knowledge base and used C # to write the google search engine for this windows application version, it mainly calls the web service opened by google, but the search speed is not very fast, but at least it saves the trouble of right-clicking [Open in a new window]. The following is the source code of the program, although it is quite long, there are not many key codes.
// Form1.cs
Using System;
Using System. Drawing;
Using System. Collections;
Using System. ComponentModel;
Using System. Windows. Forms;
Using System. Data;
Using System. Diagnostics;
Namespace WindowsApplication2
{
Public class Form1: System. Windows. Forms. Form
{
Private System. Windows. Forms. TextBox textBox2;
Private System. Windows. Forms. Button button1;
Private System. Windows. Forms. Label label1;
Private System. Windows. Forms. Label label2;
Private System. Windows. Forms. ListBox listBox1;
Private String sKey;
Private System. ComponentModel. Container components = null;
Public Form1 ()
{
InitializeComponent ();
}
Protected override void Dispose (bool disposing)
{
If (disposing)
{
If (components! = Null)
{
Components. Dispose ();
}
}
Base. Dispose (disposing );
}
# Region Windows Form Designer generated code
Private void InitializeComponent ()
{
This. textBox2 = new System. Windows. Forms. TextBox ();
This. button1 = new System. Windows. Forms. Button ();
This. label1 = new System. Windows. Forms. Label ();
This. label2 = new System. Windows. Forms. Label ();
This. listBox1 = new System. Windows. Forms. ListBox ();

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.