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;

namespace AutomatyzacjaIE
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            //SHDocVw.WebBrowser wb = new SHDocVw.WebBrowser();
            SHDocVw.InternetExplorer wb = new SHDocVw.InternetExplorer();
            wb.Visible = true;            
            wb.Navigate(textBox1.Text);
        }

        private void textBox1_KeyPress(object sender, KeyPressEventArgs e)
        {
            if (e.KeyChar == (char)13) button1_Click(sender, null);
        }
    }
}
