2
Answers

Using Google Search Engine In Website

Chakshu Jindal

Chakshu Jindal

12y
1.7k
1
Hi,

What I want is :

There is a google search engine in my website, and when I input anything to search for, it uses the actual www.google.com or I should say google database but the thing is searched results must be displayed on my site, I don't want that when I search for a particular thing in search engine, a new tab is opened or redirects to another website, I just want to have results on my website and then after clicking on the result, user may be redirected to another website.


Hoping for earliest reply.

Thanks
Answers (2)
0
Sam Hobbs

Sam Hobbs

NA 28.7k 1.3m 14y
Yes, Sahil, Frogleg did not give you the complete answer but it is assumed you understand Frogleg's code well enough to be able to modify it to do what you need to do.
0
Sahil Jani

Sahil Jani

NA 349 125.4k 14y
hi frogleg,

Thnks for giving me code. Actully, your code is working but my requirements is not being ful-filled.
0
Sahil Jani

Sahil Jani

NA 349 125.4k 14y
Hi, Sutish

My form is not depending upon the role base activity.
This form is accessed by all to fill-up. And I have only one button in that form on which I have to perform two activities one after the other.
So, is there any solution with you to do this thing?

Please help me regarding this.
0
Suthish Nair

Suthish Nair

NA 31.7k 4.6m 14y

 Depend upon user roles (Admin or User) you can do with if-else condition.
0
Frogleg

Frogleg

NA 7.9k 33k 14y
One way

 bool firstClick = false;
public Form1()
{
InitializeComponent();
}

private void button1_Click(object sender, EventArgs e)
{
if (firstClick == false)
{
firstClick = true;
MessageBox.Show("First click");
}
else
{
firstClick = false;
MessageBox.Show("Second click");
}
}
}