⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 frmview.cs

📁 考试管理系统CS架构 不需更多说明
💻 CS
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;

namespace TeachersClient
{
	/// <summary>
	/// FrmView 的摘要说明。
	/// </summary>
	public class FrmView : System.Windows.Forms.Form
	{
		private AxSHDocVw.AxWebBrowser awbView;
		/// <summary>
		/// 必需的设计器变量。
		/// </summary>
		private System.ComponentModel.Container components = null;
		
		public void linkFile(string root)
		{
			object flag=null;
			//object objRoot=(object)root;
			awbView.Navigate(root,ref flag,ref flag,ref flag,ref flag);
		}
		public FrmView()
		{
			//
			// Windows 窗体设计器支持所必需的
			//
			InitializeComponent();

			//
			// TODO: 在 InitializeComponent 调用后添加任何构造函数代码
			//
		}

		/// <summary>
		/// 清理所有正在使用的资源。
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(components != null)
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Windows 窗体设计器生成的代码
		/// <summary>
		/// 设计器支持所需的方法 - 不要使用代码编辑器修改
		/// 此方法的内容。
		/// </summary>
		private void InitializeComponent()
		{
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(FrmView));
			this.awbView = new AxSHDocVw.AxWebBrowser();
			((System.ComponentModel.ISupportInitialize)(this.awbView)).BeginInit();
			this.SuspendLayout();
			// 
			// awbView
			// 
			this.awbView.Dock = System.Windows.Forms.DockStyle.Fill;
			this.awbView.Enabled = true;
			this.awbView.Location = new System.Drawing.Point(0, 0);
			this.awbView.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("awbView.OcxState")));
			this.awbView.Size = new System.Drawing.Size(600, 397);
			this.awbView.TabIndex = 0;
			// 
			// FrmView
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
			this.ClientSize = new System.Drawing.Size(600, 397);
			this.Controls.Add(this.awbView);
			this.Name = "FrmView";
			this.Text = "查看考卷";
			this.Load += new System.EventHandler(this.FrmView_Load);
			((System.ComponentModel.ISupportInitialize)(this.awbView)).EndInit();
			this.ResumeLayout(false);

		}
		#endregion

		private void FrmView_Load(object sender, System.EventArgs e)
		{
			
		}
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -