private void Button1_Click(object sender, EventArgs e)
{
this.WebBrowser1.Navigate(this.TextBox1.Text);
}
private void Button2_Click(object sender, EventArgs e)
{
this.WebBrowser1.GoBack();
}
private void Button3_Click(object sender, EventArgs e)
{
this.WebBrowser1.GoForward();
}
private void Button4_Click(object sender, EventArgs e)
{
this.WebBrowser1.Refresh();
}
private void Button5_Click(object sender, EventArgs e)
{
MyProject.Computer.Audio.Stop();
}
[DebuggerNonUserCode]
protected override void Dispose(bool disposing)
{
try
{
if (disposing && (this.components != null))
{
this.components.Dispose();
}
}
finally
{
base.Dispose(disposing);
}
}
private void Form1_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Return)
{
this.Button1.PerformClick();
}
}
private void Form1_Load(object sender, EventArgs e)
{
MyProject.Computer.Audio.Play(ATI_Web_Browser.My.Resources.Resources.jingle_bells, AudioPlayMode.BackgroundLoop);
}
[DebuggerStepThrough]
[NonUserCode]
private void InitializeComponent()
{
ComponentResourceManager manager = new ComponentResourceManager(typeof(Form1));
this.Button1 = new Button();
this.WebBrowser1 = new WebBrowser();
this.TextBox1 = new TextBox();
this.Button2 = new Button();
this.Button3 = new Button();
this.Button4 = new Button();
this.PictureBox1 = new PictureBox();
this.Button5 = new Button();
((ISupportInitialize) this.PictureBox1).BeginInit();
this.SuspendLayout();
this.Button1.Anchor = AnchorStyles.Right | AnchorStyles.Top;
this.Button1.BackgroundImage = (Image) manager.GetObject("Button1.BackgroundImage");
this.Button1.BackgroundImageLayout = ImageLayout.None;
this.Button1.ForeColor = SystemColors.Control;
this.Button1.ImageKey = "(none)";
Point point2 = new Point(0x3e0, 13);
this.Button1.Location = point2;
this.Button1.Name = "Button1";
Size size2 = new Size(0x4b, 0x17);
this.Button1.Size = size2;
this.Button1.TabIndex = 0;
this.Button1.UseVisualStyleBackColor = true;
this.WebBrowser1.AllowWebBrowserDrop = false;
this.WebBrowser1.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Top;
point2 = new Point(8, 0x12e);
this.WebBrowser1.Location = point2;
this.WebBrowser1.Name = "WebBrowser1";
size2 = new Size(0x471, 0x261);
this.WebBrowser1.Size = size2;
this.WebBrowser1.TabIndex = 1;
this.WebBrowser1.Url = new Uri("http://www.google.se", UriKind.Absolute);
this.TextBox1.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Top;
point2 = new Point(0x59, 15);
this.TextBox1.Location = point2;
this.TextBox1.Name = "TextBox1";
size2 = new Size(0x381, 20);
this.TextBox1.Size = size2;
this.TextBox1.TabIndex = 2;
this.Button2.BackgroundImage = (Image) manager.GetObject("Button2.BackgroundImage");
point2 = new Point(8, 12);
this.Button2.Location = point2;
this.Button2.Name = "Button2";
size2 = new Size(0x4b, 0x17);
this.Button2.Size = size2;
this.Button2.TabIndex = 3;
this.Button2.UseVisualStyleBackColor = true;
this.Button3.BackgroundImage = (Image) manager.GetObject("Button3.BackgroundImage");
point2 = new Point(8, 0x26);
this.Button3.Location = point2;
this.Button3.Name = "Button3";
size2 = new Size(0x4b, 0x17);
this.Button3.Size = size2;
this.Button3.TabIndex = 4;
this.Button3.UseVisualStyleBackColor = true;
this.Button4.BackgroundImage = (Image) manager.GetObject("Button4.BackgroundImage");
point2 = new Point(0x59, 0x26);
this.Button4.Location = point2;
this.Button4.Name = "Button4";
size2 = new Size(0x4b, 0x17);
this.Button4.Size = size2;
this.Button4.TabIndex = 5;
this.Button4.UseVisualStyleBackColor = true;
this.PictureBox1.Image = (Image) manager.GetObject("PictureBox1.Image");
point2 = new Point(-1, 0x44);
this.PictureBox1.Location = point2;
this.PictureBox1.Name = "PictureBox1";
size2 = new Size(0x484, 0xe9);
this.PictureBox1.Size = size2;
this.PictureBox1.TabIndex = 6;
this.PictureBox1.TabStop = false;
this.Button5.Anchor = AnchorStyles.Right | AnchorStyles.Top;
this.Button5.BackgroundImage = (Image) manager.GetObject("Button5.BackgroundImage");
point2 = new Point(0x43b, 11);
this.Button5.Location = point2;
this.Button5.Name = "Button5";
size2 = new Size(50, 50);
this.Button5.Size = size2;
this.Button5.TabIndex = 7;
this.Button5.UseVisualStyleBackColor = true;
this.AcceptButton = this.Button1;
SizeF ef2 = new SizeF(6f, 13f);
this.AutoScaleDimensions = ef2;
this.AutoScaleMode = AutoScaleMode.Font;
this.AutoSize = true;
size2 = new Size(0x483, 0x39b);
this.ClientSize = size2;
this.Controls.Add(this.Button5);
this.Controls.Add(this.PictureBox1);
this.Controls.Add(this.Button4);
this.Controls.Add(this.Button3);
this.Controls.Add(this.Button2);
this.Controls.Add(this.TextBox1);
this.Controls.Add(this.WebBrowser1);
this.Controls.Add(this.Button1);
this.Icon = (Icon) manager.GetObject("$this.Icon");
this.Name = "Form1";
this.Text = "Christmas Browser Beta 1.0 Made by: Akke92 & Stickyone";
((ISupportInitialize) this.PictureBox1).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
private void WebBrowser1_Navigated(object sender, WebBrowserNavigatedEventArgs e)
{
this.TextBox1.Text = this.WebBrowser1.Url.ToString();
}