?? helpform.cs
字號:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using Sun188.iSBus.Common;
using Sun188.iSBus.DataAccess;
namespace Sun188.iSBus.WinUI
{
/// <summary>
/// HelpForm 的摘要說明。
/// </summary>
public class HelpForm : System.Windows.Forms.Form
{
#region 控件定義===============================================
private System.Windows.Forms.ImageList imageList2;
private System.Windows.Forms.Timer tmClock;
private System.Windows.Forms.Panel plRight;
private System.Windows.Forms.PictureBox pictureBox9;
private System.Windows.Forms.ImageList imageList3;
private System.Windows.Forms.Panel plLeft;
private System.Windows.Forms.PictureBox pictureBox8;
private System.Windows.Forms.Panel plBotton;
private System.Windows.Forms.PictureBox pictureBox12;
private System.Windows.Forms.PictureBox pictureBox11;
private System.Windows.Forms.PictureBox pictureBox10;
private System.Windows.Forms.Panel plTop;
private System.Windows.Forms.PictureBox btnMax;
private System.Windows.Forms.PictureBox btnMin;
private System.Windows.Forms.PictureBox pictureBox7;
private System.Windows.Forms.PictureBox pictureBox6;
private System.Windows.Forms.PictureBox pictureBox5;
private System.Windows.Forms.PictureBox pictureBox4;
private System.Windows.Forms.PictureBox pictureBox3;
private System.Windows.Forms.PictureBox pictureBox2;
private System.Windows.Forms.PictureBox pictureBox1;
private System.Windows.Forms.Panel panel2;
private System.Windows.Forms.Panel panel3;
private System.Windows.Forms.Panel panel4;
private System.Windows.Forms.StatusBar statusBar1;
private System.Windows.Forms.StatusBarPanel statusBarPanel1;
private System.Windows.Forms.StatusBarPanel statusBarPanel2;
private System.Windows.Forms.StatusBarPanel statusBarPanel3;
private System.Windows.Forms.PictureBox btnClose;
private System.Windows.Forms.Label lbTitle;
private System.Windows.Forms.Panel panel5;
private System.Windows.Forms.ImageList imageList1;
private System.ComponentModel.IContainer components;
private System.Windows.Forms.Timer timerHide;
private System.Windows.Forms.Timer timerShow;
private AxSHDocVw.AxWebBrowser wbBrow;
#endregion
#region 字段定義===============================================
/// <summary>
/// 鼠標的位置
/// </summary>
private int xPos,yPos;
/// <summary>
/// 鼠標偏移坐標
/// </summary>
private Point m_pOffset;
/// <summary>
/// 窗體的位置
/// </summary>
private Point locationMain = new Point(0,0);
/// <summary>
/// 最小按鈕圖片
/// </summary>
private Bitmap btnMinBmp;
/// <summary>
/// 關閉按鈕圖片
/// </summary>
private Bitmap btnCloseBmp;
/// <summary>
/// 最小按鈕是否是MouseOver事件
/// </summary>
private bool btnMinMouseOver = false;
/// <summary>
/// 最小按鈕是否是MouseDown事件
/// </summary>
private bool btnMinMouseDown = false;
/// <summary>
/// 關閉按鈕是否是MouseOver事件
/// </summary>
private bool btnCloseMouseOver = false;
/// <summary>
/// 關閉按鈕是否是MouseDown事件
/// </summary>
private bool btnCloseMouseDown = false;
private double hideForm = 1;
private double showForm = 0;
public int type = 1;
#endregion
#region 窗體加載事件處理=======================================
private void HelpForm_Load(object sender, System.EventArgs e)
{
this.timerShow.Enabled = true;
//取動計時器
this.tmClock.Enabled = true;
//狀態欄處理
this.StatusBar();
//設置最小化關閉按鈕
this.DrawButton(1);
this.DrawButton(2);
//讀取相關的網頁
this.ReadUrl();
}
#endregion
#region 清理資源===============================================
/// <summary>
/// 清理所有正在使用的資源。
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if (components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
#endregion
#region 構造函數===============================================
public HelpForm()
{
InitializeComponent();
this.Opacity = 0;
}
#endregion
#region Windows Form Designer generated code===================
/// <summary>
/// 設計器支持所需的方法 - 不要使用代碼編輯器修改
/// 此方法的內容。
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(HelpForm));
this.imageList2 = new System.Windows.Forms.ImageList(this.components);
this.tmClock = new System.Windows.Forms.Timer(this.components);
this.plRight = new System.Windows.Forms.Panel();
this.pictureBox9 = new System.Windows.Forms.PictureBox();
this.imageList3 = new System.Windows.Forms.ImageList(this.components);
this.plLeft = new System.Windows.Forms.Panel();
this.pictureBox8 = new System.Windows.Forms.PictureBox();
this.plBotton = new System.Windows.Forms.Panel();
this.pictureBox12 = new System.Windows.Forms.PictureBox();
this.pictureBox11 = new System.Windows.Forms.PictureBox();
this.pictureBox10 = new System.Windows.Forms.PictureBox();
this.plTop = new System.Windows.Forms.Panel();
this.btnClose = new System.Windows.Forms.PictureBox();
this.btnMax = new System.Windows.Forms.PictureBox();
this.btnMin = new System.Windows.Forms.PictureBox();
this.pictureBox7 = new System.Windows.Forms.PictureBox();
this.pictureBox6 = new System.Windows.Forms.PictureBox();
this.pictureBox5 = new System.Windows.Forms.PictureBox();
this.pictureBox4 = new System.Windows.Forms.PictureBox();
this.pictureBox3 = new System.Windows.Forms.PictureBox();
this.pictureBox2 = new System.Windows.Forms.PictureBox();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.imageList1 = new System.Windows.Forms.ImageList(this.components);
this.panel2 = new System.Windows.Forms.Panel();
this.lbTitle = new System.Windows.Forms.Label();
this.panel3 = new System.Windows.Forms.Panel();
this.wbBrow = new AxSHDocVw.AxWebBrowser();
this.panel4 = new System.Windows.Forms.Panel();
this.statusBar1 = new System.Windows.Forms.StatusBar();
this.statusBarPanel1 = new System.Windows.Forms.StatusBarPanel();
this.statusBarPanel2 = new System.Windows.Forms.StatusBarPanel();
this.statusBarPanel3 = new System.Windows.Forms.StatusBarPanel();
this.panel5 = new System.Windows.Forms.Panel();
this.timerHide = new System.Windows.Forms.Timer(this.components);
this.timerShow = new System.Windows.Forms.Timer(this.components);
this.plRight.SuspendLayout();
this.plLeft.SuspendLayout();
this.plBotton.SuspendLayout();
this.plTop.SuspendLayout();
this.panel2.SuspendLayout();
this.panel3.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.wbBrow)).BeginInit();
this.panel4.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.statusBarPanel1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.statusBarPanel2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.statusBarPanel3)).BeginInit();
this.SuspendLayout();
//
// imageList2
//
this.imageList2.ColorDepth = System.Windows.Forms.ColorDepth.Depth8Bit;
this.imageList2.ImageSize = new System.Drawing.Size(16, 16);
this.imageList2.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList2.ImageStream")));
this.imageList2.TransparentColor = System.Drawing.Color.Transparent;
//
// tmClock
//
this.tmClock.Interval = 1000;
this.tmClock.Tick += new System.EventHandler(this.tmClock_Tick);
//
// plRight
//
this.plRight.Controls.AddRange(new System.Windows.Forms.Control[] {
this.pictureBox9});
this.plRight.Dock = System.Windows.Forms.DockStyle.Right;
this.plRight.Location = new System.Drawing.Point(596, 26);
this.plRight.Name = "plRight";
this.plRight.Size = new System.Drawing.Size(4, 420);
this.plRight.TabIndex = 14;
//
// pictureBox9
//
this.pictureBox9.BackgroundImage = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox9.BackgroundImage")));
this.pictureBox9.Dock = System.Windows.Forms.DockStyle.Fill;
this.pictureBox9.Name = "pictureBox9";
this.pictureBox9.Size = new System.Drawing.Size(4, 420);
this.pictureBox9.TabIndex = 0;
this.pictureBox9.TabStop = false;
//
// imageList3
//
this.imageList3.ColorDepth = System.Windows.Forms.ColorDepth.Depth8Bit;
this.imageList3.ImageSize = new System.Drawing.Size(16, 16);
this.imageList3.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList3.ImageStream")));
this.imageList3.TransparentColor = System.Drawing.Color.Transparent;
//
// plLeft
//
this.plLeft.Controls.AddRange(new System.Windows.Forms.Control[] {
this.pictureBox8});
this.plLeft.Dock = System.Windows.Forms.DockStyle.Left;
this.plLeft.Location = new System.Drawing.Point(0, 26);
this.plLeft.Name = "plLeft";
this.plLeft.Size = new System.Drawing.Size(4, 420);
this.plLeft.TabIndex = 12;
//
// pictureBox8
//
this.pictureBox8.BackgroundImage = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox8.BackgroundImage")));
this.pictureBox8.Dock = System.Windows.Forms.DockStyle.Fill;
this.pictureBox8.Name = "pictureBox8";
this.pictureBox8.Size = new System.Drawing.Size(4, 420);
this.pictureBox8.TabIndex = 0;
this.pictureBox8.TabStop = false;
//
// plBotton
//
this.plBotton.Controls.AddRange(new System.Windows.Forms.Control[] {
this.pictureBox12,
this.pictureBox11,
this.pictureBox10});
this.plBotton.Dock = System.Windows.Forms.DockStyle.Bottom;
this.plBotton.Location = new System.Drawing.Point(0, 446);
this.plBotton.Name = "plBotton";
this.plBotton.Size = new System.Drawing.Size(600, 4);
this.plBotton.TabIndex = 11;
//
// pictureBox12
//
this.pictureBox12.Dock = System.Windows.Forms.DockStyle.Right;
this.pictureBox12.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox12.Image")));
this.pictureBox12.Location = new System.Drawing.Point(596, 0);
this.pictureBox12.Name = "pictureBox12";
this.pictureBox12.Size = new System.Drawing.Size(4, 4);
this.pictureBox12.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
this.pictureBox12.TabIndex = 2;
this.pictureBox12.TabStop = false;
//
// pictureBox11
//
this.pictureBox11.BackgroundImage = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox11.BackgroundImage")));
this.pictureBox11.Dock = System.Windows.Forms.DockStyle.Fill;
this.pictureBox11.Location = new System.Drawing.Point(4, 0);
this.pictureBox11.Name = "pictureBox11";
this.pictureBox11.Size = new System.Drawing.Size(596, 4);
this.pictureBox11.TabIndex = 1;
this.pictureBox11.TabStop = false;
//
// pictureBox10
//
this.pictureBox10.Dock = System.Windows.Forms.DockStyle.Left;
this.pictureBox10.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox10.Image")));
this.pictureBox10.Name = "pictureBox10";
this.pictureBox10.Size = new System.Drawing.Size(4, 4);
this.pictureBox10.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
this.pictureBox10.TabIndex = 0;
this.pictureBox10.TabStop = false;
//
// plTop
//
this.plTop.Controls.AddRange(new System.Windows.Forms.Control[] {
this.btnClose,
this.btnMax,
this.btnMin,
this.pictureBox7,
this.pictureBox6,
this.pictureBox5,
this.pictureBox4,
this.pictureBox3,
this.pictureBox2,
this.pictureBox1});
this.plTop.Dock = System.Windows.Forms.DockStyle.Top;
this.plTop.Name = "plTop";
this.plTop.Size = new System.Drawing.Size(600, 26);
this.plTop.TabIndex = 15;
//
// btnClose
//
this.btnClose.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnClose.Image = ((System.Drawing.Bitmap)(resources.GetObject("btnClose.Image")));
this.btnClose.Location = new System.Drawing.Point(572, 3);
this.btnClose.Name = "btnClose";
this.btnClose.Size = new System.Drawing.Size(20, 20);
this.btnClose.TabIndex = 14;
this.btnClose.TabStop = false;
this.btnClose.Click += new System.EventHandler(this.btnClose_Click);
this.btnClose.MouseMove += new System.Windows.Forms.MouseEventHandler(this.btnClose_MouseMove);
this.btnClose.MouseLeave += new System.EventHandler(this.btnClose_MouseLeave);
this.btnClose.MouseDown += new System.Windows.Forms.MouseEventHandler(this.btnClose_MouseDown);
//
// btnMax
//
this.btnMax.Image = ((System.Drawing.Bitmap)(resources.GetObject("btnMax.Image")));
this.btnMax.Location = new System.Drawing.Point(547, 3);
this.btnMax.Name = "btnMax";
this.btnMax.Size = new System.Drawing.Size(20, 20);
this.btnMax.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
this.btnMax.TabIndex = 12;
this.btnMax.TabStop = false;
//
// btnMin
//
this.btnMin.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnMin.Image = ((System.Drawing.Bitmap)(resources.GetObject("btnMin.Image")));
this.btnMin.Location = new System.Drawing.Point(523, 3);
this.btnMin.Name = "btnMin";
this.btnMin.Size = new System.Drawing.Size(20, 20);
this.btnMin.TabIndex = 11;
this.btnMin.TabStop = false;
this.btnMin.Click += new System.EventHandler(this.btnMin_Click);
this.btnMin.MouseMove += new System.Windows.Forms.MouseEventHandler(this.btnMin_MouseMove);
this.btnMin.MouseLeave += new System.EventHandler(this.btnMin_MouseLeave);
this.btnMin.MouseDown += new System.Windows.Forms.MouseEventHandler(this.btnMin_MouseDown);
//
// pictureBox7
//
this.pictureBox7.Dock = System.Windows.Forms.DockStyle.Right;
this.pictureBox7.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox7.Image")));
this.pictureBox7.Location = new System.Drawing.Point(596, 0);
this.pictureBox7.Name = "pictureBox7";
this.pictureBox7.Size = new System.Drawing.Size(4, 26);
this.pictureBox7.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
this.pictureBox7.TabIndex = 7;
this.pictureBox7.TabStop = false;
//
// pictureBox6
//
this.pictureBox6.BackgroundImage = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox6.BackgroundImage")));
this.pictureBox6.Dock = System.Windows.Forms.DockStyle.Fill;
this.pictureBox6.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox6.Image")));
this.pictureBox6.Location = new System.Drawing.Point(518, 0);
this.pictureBox6.Name = "pictureBox6";
this.pictureBox6.Size = new System.Drawing.Size(82, 26);
this.pictureBox6.TabIndex = 6;
this.pictureBox6.TabStop = false;
//
// pictureBox5
//
this.pictureBox5.Dock = System.Windows.Forms.DockStyle.Left;
this.pictureBox5.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox5.Image")));
this.pictureBox5.Location = new System.Drawing.Point(504, 0);
this.pictureBox5.Name = "pictureBox5";
this.pictureBox5.Size = new System.Drawing.Size(14, 26);
this.pictureBox5.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
this.pictureBox5.TabIndex = 5;
this.pictureBox5.TabStop = false;
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -