summaryrefslogtreecommitdiff
path: root/Smart TV for Windows/netflix.cs
blob: 497bb7479fa5edbae53ed32849ba77e2b1a40ce5 (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
39
40
41
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 cef;
using CefSharp;
using CefSharp.WinForms;
using CefSharp.WinForms.Internals;

namespace Smart_TV_for_Windows
{
    public partial class netflix : Form
    {
        public netflix()
        {
            InitializeComponent();
        }
        public CefSharp.WinForms.ChromiumWebBrowser browser;

        private void netflix_Load(object sender, EventArgs e)
        {
            browser = new CefSharp.WinForms.ChromiumWebBrowser("https://www.netflix.com")
            {
                Dock = DockStyle.Fill,
                Size = new Size(600, 600),
                Location = new Point(200, 200),
            };
            this.panel1.Controls.Add(browser);
        }

        private void panel1_Paint(object sender, PaintEventArgs e)
        {

        }
    }
}