工具欄
#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
說明:和菜單欄實現的功能類似,也是一些簡單的調用,僅僅是表現形式不同。