Arama Çubuğu - ToolBar
Kaynak Kodu :
// C# Programlama Dili
// zafercavdar
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO;
namespace UppsBar
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void search_Click(object sender, EventArgs e)
{
if (comboBox1.Text == "Yandex")
System.Diagnostics.Process.Start("http://yandex.com.tr/yandsearch?text=" + textBox1.Text + "&lr=103833");
else if (comboBox1.Text == "Google")
System.Diagnostics.Process.Start("http://www.google.com/search?q=" + textBox1.Text);
else if (comboBox1.Text == "Yahoo")
System.Diagnostics.Process.Start("http://tr.search.yahoo.com/search?p=" + textBox1.Text);
else if (comboBox1.Text == "Bing")
System.Diagnostics.Process.Start("http://www.bing.com/search?q=" + textBox1.Text);
else if (comboBox1.Text == "Torrentz")
System.Diagnostics.Process.Start("http://torrentz.eu/search?f=" + textBox1.Text);
else if (comboBox1.Text == "Tureng")
System.Diagnostics.Process.Start("http://tureng.com/search/" + textBox1.Text);
else if (comboBox1.Text == "Amazon")
System.Diagnostics.Process.Start("http://www.amazon.com/s/ref=nb_sb_noss?url=search-alias%3Daps&field-keywords=" + textBox1.Text + "&x=0&y=0");
else if (comboBox1.Text == "Ebay")
System.Diagnostics.Process.Start("http://shop.ebay.com/i.html?_from=R40&_trksid=p5197.m570.l1313&_nkw=" + textBox1.Text + "&_sacat=See-All-Categories");
else if (comboBox1.Text == "HepsiBurada")
System.Diagnostics.Process.Start("http://www.hepsiburada.com/liste/search.aspx?sText=" + textBox1.Text);
else if (comboBox1.Text == "Wikipedia")
System.Diagnostics.Process.Start("http://tr.wikipedia.org/w/index.php?title=%C3%96zel%3AAra&search=" + textBox1.Text);
else
MessageBox.Show("Nerede aranacak ? Hatalı kardeşim baştan dene.\n", "Hata" , MessageBoxButtons.OK , MessageBoxIcon.Error);
}
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
{
}
private void label2_Click(object sender, EventArgs e)
{
System.Diagnostics.Process.Start("http://www.facebook.com/zafercvdr");
}
private void timer1_Tick(object sender, EventArgs e)
{
if (comboBox1.Text == "y" || comboBox1.Text == "Y")
{
comboBox1.Text = "Yandex";
SendKeys.Send("{tab}");
}
if (comboBox1.Text == "g" || comboBox1.Text == "G")
{
comboBox1.Text = "Google";
SendKeys.Send("{tab}");
}
}
private void textBox1_TextChanged(object sender, EventArgs e)
{
}
private void Form1_Load(object sender, EventArgs e)
{
timer1.Start();
}
}
}
// zafercavdar
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO;
namespace UppsBar
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void search_Click(object sender, EventArgs e)
{
if (comboBox1.Text == "Yandex")
System.Diagnostics.Process.Start("http://yandex.com.tr/yandsearch?text=" + textBox1.Text + "&lr=103833");
else if (comboBox1.Text == "Google")
System.Diagnostics.Process.Start("http://www.google.com/search?q=" + textBox1.Text);
else if (comboBox1.Text == "Yahoo")
System.Diagnostics.Process.Start("http://tr.search.yahoo.com/search?p=" + textBox1.Text);
else if (comboBox1.Text == "Bing")
System.Diagnostics.Process.Start("http://www.bing.com/search?q=" + textBox1.Text);
else if (comboBox1.Text == "Torrentz")
System.Diagnostics.Process.Start("http://torrentz.eu/search?f=" + textBox1.Text);
else if (comboBox1.Text == "Tureng")
System.Diagnostics.Process.Start("http://tureng.com/search/" + textBox1.Text);
else if (comboBox1.Text == "Amazon")
System.Diagnostics.Process.Start("http://www.amazon.com/s/ref=nb_sb_noss?url=search-alias%3Daps&field-keywords=" + textBox1.Text + "&x=0&y=0");
else if (comboBox1.Text == "Ebay")
System.Diagnostics.Process.Start("http://shop.ebay.com/i.html?_from=R40&_trksid=p5197.m570.l1313&_nkw=" + textBox1.Text + "&_sacat=See-All-Categories");
else if (comboBox1.Text == "HepsiBurada")
System.Diagnostics.Process.Start("http://www.hepsiburada.com/liste/search.aspx?sText=" + textBox1.Text);
else if (comboBox1.Text == "Wikipedia")
System.Diagnostics.Process.Start("http://tr.wikipedia.org/w/index.php?title=%C3%96zel%3AAra&search=" + textBox1.Text);
else
MessageBox.Show("Nerede aranacak ? Hatalı kardeşim baştan dene.\n", "Hata" , MessageBoxButtons.OK , MessageBoxIcon.Error);
}
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
{
}
private void label2_Click(object sender, EventArgs e)
{
System.Diagnostics.Process.Start("http://www.facebook.com/zafercvdr");
}
private void timer1_Tick(object sender, EventArgs e)
{
if (comboBox1.Text == "y" || comboBox1.Text == "Y")
{
comboBox1.Text = "Yandex";
SendKeys.Send("{tab}");
}
if (comboBox1.Text == "g" || comboBox1.Text == "G")
{
comboBox1.Text = "Google";
SendKeys.Send("{tab}");
}
}
private void textBox1_TextChanged(object sender, EventArgs e)
{
}
private void Form1_Load(object sender, EventArgs e)
{
timer1.Start();
}
}
}