扫一扫
分享文章到微信
扫一扫
关注官方公众号
至顶头条
作者:zhangjidong 来源:博客园 2007年11月11日
关键字:
#region//菜单栏 /// <summary> /// 另存为 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void saveasToolStripMenuItem_Click(object sender, EventArgs e) { getCurrentBrowser().ShowSaveAsDialog(); } /// <summary> /// 打印 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void printToolStripMenuItem_Click(object sender, EventArgs e) { getCurrentBrowser().ShowPrintDialog(); } /// <summary> /// 打印御览 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void printPreToolStripMenuItem_Click(object sender, EventArgs e) { getCurrentBrowser().ShowPrintPreviewDialog(); } /// <summary> /// 关闭浏览器 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void exitToolStripMenuItem_Click(object sender, EventArgs e) { Application.Exit(); } /// <summary> /// 页面设置 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void pageSetupToolStripMenuItem_Click(object sender, EventArgs e) { getCurrentBrowser().ShowPageSetupDialog(); } /// <summary> /// 属性设置 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void propeToolStripMenuItem_Click(object sender, EventArgs e) { getCurrentBrowser().ShowPropertiesDialog(); } #region//关于 private void aboutToolStripMenuItem_Click(object sender, EventArgs e) { AboutBox1 myabout = new AboutBox1(); myabout.Show(); } private void tipToolStripMenuItem_Click(object sender, EventArgs e) { MessageBox.Show("小提示:双击分页标题即可关闭当前页面。"); } #endregion #endregion |
#region//工具栏 /// <summary> /// 后退 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void backButton_Click(object sender, EventArgs e) { getCurrentBrowser().GoBack(); setStatusButton(); } /// <summary> /// 前进 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void forwordButton_Click(object sender, EventArgs e) { getCurrentBrowser().GoForward(); setStatusButton(); } /// <summary> /// 停止 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void stopButton_Click(object sender, EventArgs e) { getCurrentBrowser().Stop(); } /// <summary> /// 刷新 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void refreshButton_Click(object sender, EventArgs e) { getCurrentBrowser().Refresh(); } /// <summary> /// 定向到主页 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void homeButton_Click(object sender, EventArgs e) { getCurrentBrowser().GoHome(); } /// <summary> /// 搜索 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void searchButton_Click(object sender, EventArgs e) { getCurrentBrowser().GoSearch(); } /// <summary> /// 打印 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void printButton_Click(object sender, EventArgs e) { getCurrentBrowser().Print(); } /// <summary> /// 新建空白页 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void newButton_Click(object sender, EventArgs e) { newPage(); } /// <summary> /// 使当前的浏览器定位到给定url /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void gotoButton_Click(object sender, EventArgs e) { newCurrentPageUrl(tscbUrl.Text); } #endregion |
如果您非常迫切的想了解IT领域最新产品与技术信息,那么订阅至顶网技术邮件将是您的最佳途径之一。
现场直击|2021世界人工智能大会
直击5G创新地带,就在2021MWC上海
5G已至 转型当时——服务提供商如何把握转型的绝佳时机
寻找自己的Flag
华为开发者大会2020(Cloud)- 科技行者