forked from cwc/web-page-screensaver
-
Notifications
You must be signed in to change notification settings - Fork 3
/
ScreensaverForm.Designer.cs
115 lines (99 loc) · 4.34 KB
/
ScreensaverForm.Designer.cs
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
using System;
using System.Diagnostics;
using System.Windows.Forms;
using CefSharp;
using CefSharp.WinForms;
namespace Web_Page_Screensaver
{
partial class ScreensaverForm
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.SuspendLayout();
//
// ScreensaverForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(379, 322);
this.BackColor = System.Drawing.Color.Black;
this.ForeColor = System.Drawing.Color.White;
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.Margin = new System.Windows.Forms.Padding(4);
this.MaximizeBox = false;
this.MinimizeBox = false;
this.ControlBox = false;
this.TopMost = true;
this.ShowIcon = false;
this.ShowInTaskbar = false;
this.Name = "ScreensaverForm";
this.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
this.Text = "Form1";
this.Load += new System.EventHandler(this.ScreensaverForm_Load);
//
// webBrowser
//
this.webBrowser = new CefSharp.WinForms.ChromiumWebBrowser("about:blank")
{
Dock = DockStyle.Fill,
Location = new System.Drawing.Point(0, 0),
Margin = new System.Windows.Forms.Padding(4),
MinimumSize = new System.Drawing.Size(27, 25),
Name = "webBrowser",
Size = new System.Drawing.Size(379, 322),
TabIndex = 0,
Enabled = false,
ActivateBrowserOnCreation = true,
Visible = false,
TabStop = false,
AllowDrop = false,
};
Console.WriteLine(this.webBrowser.Handle);
// ie11
//this.webBrowser.ScriptErrorsSuppressed = true;
this.webBrowser.IsBrowserInitializedChanged += OnIsBrowserInitializedChanged;
this.Controls.Add(this.webBrowser);
//
// closeButton
//
this.closeButton = new System.Windows.Forms.Button();
this.closeButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.closeButton.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.closeButton.Location = new System.Drawing.Point(323, 15);
this.closeButton.Margin = new System.Windows.Forms.Padding(4);
this.closeButton.Name = "closeButton";
this.closeButton.Size = new System.Drawing.Size(40, 28);
this.closeButton.TabIndex = 1;
this.closeButton.Text = "X";
this.closeButton.UseVisualStyleBackColor = true;
this.closeButton.Visible = false;
this.closeButton.Click += new System.EventHandler(this.closeButton_Click);
this.Controls.Add(this.closeButton);
this.ResumeLayout(false);
}
#endregion
private CefSharp.WinForms.ChromiumWebBrowser webBrowser;
private System.Windows.Forms.Button closeButton;
}
}