49 lines
1 KiB
C#
49 lines
1 KiB
C#
using System;
|
|
using System.ComponentModel;
|
|
using System.Drawing;
|
|
using System.Threading.Tasks;
|
|
using System.Windows.Forms;
|
|
|
|
namespace ControlApp;
|
|
|
|
public class sendcmd : Form
|
|
{
|
|
private IContainer components;
|
|
|
|
public sendcmd(string Url)
|
|
{
|
|
WebBrowser wb = new WebBrowser();
|
|
wb.Navigate(Url);
|
|
wb.Dock = DockStyle.Fill;
|
|
base.Controls.Add(wb);
|
|
InitializeComponent();
|
|
}
|
|
|
|
private async void sendcmd_Load(object sender, EventArgs e)
|
|
{
|
|
SendToBack();
|
|
await Task.Delay(3000);
|
|
Close();
|
|
}
|
|
|
|
protected override void Dispose(bool disposing)
|
|
{
|
|
if (disposing && components != null)
|
|
{
|
|
components.Dispose();
|
|
}
|
|
base.Dispose(disposing);
|
|
}
|
|
|
|
private void InitializeComponent()
|
|
{
|
|
base.SuspendLayout();
|
|
base.AutoScaleDimensions = new System.Drawing.SizeF(7f, 15f);
|
|
base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|
base.ClientSize = new System.Drawing.Size(800, 450);
|
|
base.Name = "sendcmd";
|
|
this.Text = "sendcmd";
|
|
base.Load += new System.EventHandler(sendcmd_Load);
|
|
base.ResumeLayout(false);
|
|
}
|
|
}
|