aboutsummaryrefslogtreecommitdiff
path: root/YouTube TV/Form1.cs
blob: a27692c8b2ca0bee48ff333f946ce2bc73600e1d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using CefSharp;
using CefSharp.WinForms;
using CefSharp.WinForms.Internals;

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

        public CefSharp.WinForms.ChromiumWebBrowser browser;

        private void Form1_Load(object sender, EventArgs e)
        {
            MessageBox.Show("This project was created by AleeCorp! To exit press Alt+F4. This will take some time please wait...");

            browser = new CefSharp.WinForms.ChromiumWebBrowser("www.youtube.com/tv");
            {
                Dock = DockStyle.Fill;
                Size = new Size(514, 421);
                Location = new Point(0, 0);
            }
            this.panel1.Controls.Add(browser);
        }
    }
}