Question AUTOMATIC TYPE?? (Windows Forms App)

jhonrey1010

New member
Joined
May 23, 2017
Messages
2
Programming Experience
Beginner
HOW TO ADD A EVENT THAT AUTO TYPE WORDS THRU THE WEBBROWSER WHEN TEXTBOX IS WRITTEN? ( LOOK AT THE PICTURE BELOW)
attachment.php

namespace WindowsFormsApp1
{
partial class Form1
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;


/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}


#region Windows Form Designer generated code


/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.textBox1 = new System.Windows.Forms.TextBox();
this.textBox2 = new System.Windows.Forms.TextBox();
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.webBrowser1 = new System.Windows.Forms.WebBrowser();
this.label3 = new System.Windows.Forms.Label();
this.SuspendLayout();
//
// textBox1
//
this.textBox1.Location = new System.Drawing.Point(12, 78);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(384, 20);
this.textBox1.TabIndex = 0;
this.textBox1.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// textBox2
//
this.textBox2.Location = new System.Drawing.Point(12, 126);
this.textBox2.Name = "textBox2";
this.textBox2.Size = new System.Drawing.Size(384, 20);
this.textBox2.TabIndex = 1;
this.textBox2.UseSystemPasswordChar = true;
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(168, 110);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(73, 13);
this.label1.TabIndex = 2;
this.label1.Text = "PASSWORD:";
//
// label2
//
this.label2.AutoSize = true;
this.label2.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
this.label2.Location = new System.Drawing.Point(168, 62);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(71, 13);
this.label2.TabIndex = 3;
this.label2.Text = "USERNAME:";
//
// webBrowser1
//
this.webBrowser1.Location = new System.Drawing.Point(12, 239);
this.webBrowser1.MinimumSize = new System.Drawing.Size(20, 20);
this.webBrowser1.Name = "webBrowser1";
this.webBrowser1.Size = new System.Drawing.Size(384, 240);
this.webBrowser1.TabIndex = 4;
this.webBrowser1.Url = new System.Uri("http://www.aavtrain.com/", System.UriKind.Absolute);
//
// label3
//
this.label3.AutoSize = true;
this.label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label3.ForeColor = System.Drawing.Color.Red;
this.label3.Location = new System.Drawing.Point(166, 20);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(89, 25);
this.label3.TabIndex = 5;
this.label3.Text = "test login";
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(406, 520);
this.Controls.Add(this.label3);
this.Controls.Add(this.webBrowser1);
this.Controls.Add(this.label2);
this.Controls.Add(this.label1);
this.Controls.Add(this.textBox2);
this.Controls.Add(this.textBox1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.Name = "Form1";
this.Text = "test";
this.ResumeLayout(false);
this.PerformLayout();


}


#endregion


private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.TextBox textBox2;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.WebBrowser webBrowser1;
private System.Windows.Forms.Label label3;
}
}
 

Latest posts

Back
Top Bottom