使用C#按钮单击导航

时间:2018-05-17 16:46:29

标签: c# button web webbrowser-control navigateurl

我想确保在下一页点击按钮时。我试过了:

using System;
using System.Collections.Generic;
using System.Drawing;
using System.Windows.Forms;

namespace ffffffffffffgd
{
    /// <summary>
    /// Description of MainForm.
    /// </summary>
    public partial class MainForm : Form
    {
        public MainForm()
        {
            //
            // The InitializeComponent() call is required for Windows Forms designer support.
            //
            InitializeComponent();

            //
            // TODO: Add constructor code after the InitializeComponent() call.
            //
        }
        void Button1Click(object sender, EventArgs e)
        {
    webBrowser1.Navigate("https://www.scifi.hu");
    webBrowser1.Navigate("http://onlinepont-online.cc");
    webBrowser1.Navigate("https://filmbolond-onlinefilm.net");
    webBrowser1.Navigate("https://www.mafab.hu");
    webBrowser1.Navigate("https://lichess.org/");
        }
    }
}

0 个答案:

没有答案