1. 1) For this lab, you will be modifying the Login form and creating an Email form. Please use the two attachments below as a guide when building your forms. 2) For the Login form, use a dimension of...

1 answer below »





  1. 1) For this lab, you will be modifying the Login form and creating an Email form.
    Please use the two attachments below as a guide when building your forms.


    2) For the Login form, use a dimension of 600x330 and add the additional controls to
    scale.


    3) For the Email form, use a minimum dimension of 690x500 and add the
    additional controls to scale.


    4) Lastly, don't forget to create click events for all buttons and text links.














    Login Form.PNG


    Email Form.PNG

    NO REFERENCES NEEDED




1. 1) For this lab, you will be modifying the Login form and creating an Email form.  Please use the two attachments below as a guide when building your forms. 2) For the Login form, use a dimension of 600x330 and add the additional controls to  scale.  3) For the Email form, use a minimum dimension of 690x500 and add the  additional controls to scale. 4) Lastly, don't forget to create click events for all buttons and text links. Login Form.PNG Email Form.PNG
Answered Same DayMar 30, 2021

Answer To: 1. 1) For this lab, you will be modifying the Login form and creating an Email form. Please use the...

Neha answered on Apr 02 2021
135 Votes
LoginApp/.vs/LoginApp/v15/.suo
LoginApp/.vs/LoginApp/v15/Server/sqlite3/db.lock
LoginApp/.vs/LoginApp/v15/Server/sqlite3/storage.ide
LoginApp/.vs/LoginApp/v15/Server/sqlite3/storage.ide-shm
LoginApp/.vs/LoginApp/v15/Server/sqlite3/storage.ide-wal
LoginApp/EmailApp/App.config




LoginApp/EmailApp/bin/Debug/EmailApp.exe
LoginApp/EmailApp/bin/Debug/EmailApp.exe.config




LoginApp/EmailApp/bin/Debug/EmailApp.pdb
LoginApp/EmailApp/EmailApp.csproj



Debug
AnyCPU
{89CDE14B-DF78-42A6-A669-4E7BE0E8B91B}
WinExe
EmailApp
EmailApp
v4.6.1
512
true
true


AnyCPU
true
full
false
bin\Debug\
DEBUG;TRACE
prompt
4


AnyCPU
pdbonly
true
bin\Release\
TRACE
prompt
4
















Form


Form1.cs




Form1.cs


ResXFileCodeGenerator
Resources.Designer.cs
Designer


True
Resources.resx


SettingsSingleFileGenerator
Settings.Designer.cs


True
Settings.sett
ings
True






LoginApp/EmailApp/Form1.cs
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace EmailApp
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void label2_Click(object sender, EventArgs e)
{
}
private void richTextBox1_TextChanged(object sender, EventArgs e)
{
}
private void button1_Click(object sender, EventArgs e)
{
if (textBox1.Text == "")
{
MessageBox.Show("Please enter an address");
textBox1.Focus();
}
else if (textBox4.Text == "")
{
MessageBox.Show("Please enter a proper subject");
textBox1.Focus();
}
else if (richTextBox1.Text == "")
{
MessageBox.Show("Please enter a body");
textBox1.Focus();
}
else
{
MessageBox.Show("Email Sent");
textBox1.Clear();
textBox3.Clear();
richTextBox1.Clear();
richTextBox2.Clear();
textBox4.Clear();
}
}
private void button2_Click(object sender, EventArgs e)
{
this.Close();
}
private void button3_Click(object sender, EventArgs e)
{
MessageBox.Show("Enter reciever email address");
}
private void button4_Click(object sender, EventArgs e)
{
MessageBox.Show("Enter email addresses to send carbon copy");
}
private void button5_Click(object sender, EventArgs e)
{
MessageBox.Show("Enter files name to be sent ");
}
private void richTextBox2_TextChanged(object sender, EventArgs e)
{
}
}
}
LoginApp/EmailApp/Form1.Designer.cs
namespace EmailApp
{
partial class Form1
{
///
/// Required designer variable.
///

private System.ComponentModel.IContainer components = null;
///
/// Clean up any resources being used.
///

/// true if managed resources should be disposed; otherwise, false.
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
///
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
///

private void InitializeComponent()
{
this.button1 = new System.Windows.Forms.Button();
this.button2 = new System.Windows.Forms.Button();
this.button3 = new System.Windows.Forms.Button();
this.button4 = new System.Windows.Forms.Button();
this.button5 = new System.Windows.Forms.Button();
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.textBox1 = new System.Windows.Forms.TextBox();
this.textBox3 = new System.Windows.Forms.TextBox();
this.textBox4 = new System.Windows.Forms.TextBox();
this.richTextBox1 = new System.Windows.Forms.RichTextBox();
this.richTextBox2 = new System.Windows.Forms.RichTextBox();
this.textBox2 = new System.Windows.Forms.TextBox();
this.SuspendLayout();
//
// button1
//
this.button1.Location = new System.Drawing.Point(22, 24);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(78, 93);
this.button1.TabIndex = 0;
this.button1.Text = "Send";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// button2
//
this.button2.Location = new System.Drawing.Point(25, 138);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(75, 41);
this.button2.TabIndex = 1;
this.button2.Text = "Exit";
this.button2.UseVisualStyleBackColor = true;
this.button2.Click += new System.EventHandler(this.button2_Click);
//
// button3
//
this.button3.Location = new System.Drawing.Point(127, 46);
this.button3.Name = "button3";
this.button3.Size = new System.Drawing.Size(98, 27);
this.button3.TabIndex = 2;
this.button3.Text = "To...";
this.button3.UseVisualStyleBackColor = true;
this.button3.Click += new System.EventHandler(this.button3_Click);
//
// button4
//
this.button4.Location = new System.Drawing.Point(126, 84);
this.button4.Name = "button4";
this.button4.Size = new System.Drawing.Size(98, 23);
this.button4.TabIndex = 3;
this.button4.Text = "CC...";
this.button4.UseVisualStyleBackColor = true;
this.button4.Click += new System.EventHandler(this.button4_Click);
//
// button5
//
this.button5.Location = new System.Drawing.Point(127, 145);
this.button5.Name = "button5";
this.button5.Size = new System.Drawing.Size(98, 34);
this.button5.TabIndex = 4;
this.button5.Text = "Attach Files:";
this.button5.UseVisualStyleBackColor = true;
this.button5.Click += new System.EventHandler(this.button5_Click);
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(181, 24);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(44, 17);
this.label1.TabIndex = 5;
this.label1.Text = "From:";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(165, 118);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(59, 17);
this.label2.TabIndex = 6;
this.label2.Text = "Subject:";
this.label2.Click += new System.EventHandler(this.label2_Click);
//
// textBox1
//
this.textBox1.Location = new System.Drawing.Point(238, 51);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(422, 22);
this.textBox1.TabIndex = 7;
//
// textBox3
//
this.textBox3.Location = new System.Drawing.Point(238, 85);
this.textBox3.Name = "textBox3";
this.textBox3.Size = new System.Drawing.Size(422, 22);
this.textBox3.TabIndex = 9;
//
// textBox4
//
this.textBox4.Location = new System.Drawing.Point(238, 118);
this.textBox4.Name = "textBox4";
this.textBox4.Size = new System.Drawing.Size(422, 22);
this.textBox4.TabIndex = 10;
//
// richTextBox1
//
this.richTextBox1.Location = new System.Drawing.Point(12, 197);
this.richTextBox1.Name = "richTextBox1";
this.richTextBox1.Size = new System.Drawing.Size(648, 244);
this.richTextBox1.TabIndex = 11;
this.richTextBox1.Text = "";
this.richTextBox1.TextChanged += new System.EventHandler(this.richTextBox1_TextChanged);
//
// richTextBox2
//
this.richTextBox2.Location = new System.Drawing.Point(231, 148);
this.richTextBox2.Name = "richTextBox2";
this.richTextBox2.Size = new System.Drawing.Size(429, 43);
this.richTextBox2.TabIndex = 12;
this.richTextBox2.Text = "";
this.richTextBox2.TextChanged += new System.EventHandler(this.richTextBox2_TextChanged);
//
// textBox2
//
this.textBox2.Location = new System.Drawing.Point(238, 21);
this.textBox2.Name = "textBox2";
this.textBox2.ReadOnly = true;
this.textBox2.Size = new System.Drawing.Size(422, 22);
this.textBox2.TabIndex = 13;
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(672, 453);
this.Controls.Add(this.textBox2);
this.Controls.Add(this.richTextBox2);
this.Controls.Add(this.richTextBox1);
this.Controls.Add(this.textBox4);
this.Controls.Add(this.textBox3);
this.Controls.Add(this.textBox1);
this.Controls.Add(this.label2);
this.Controls.Add(this.label1);
this.Controls.Add(this.button5);
this.Controls.Add(this.button4);
this.Controls.Add(this.button3);
this.Controls.Add(this.button2);
this.Controls.Add(this.button1);
this.Name = "Form1";
this.Text = "Email";
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Button button2;
private System.Windows.Forms.Button button3;
private System.Windows.Forms.Button button4;
private System.Windows.Forms.Button button5;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.TextBox textBox3;
private System.Windows.Forms.TextBox textBox4;
private System.Windows.Forms.RichTextBox richTextBox1;
private System.Windows.Forms.RichTextBox richTextBox2;
private System.Windows.Forms.TextBox textBox2;
}
}
LoginApp/EmailApp/Form1.resx

















































text/microsoft-resx


2.0


System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089


System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
...
SOLUTION.PDF

Answer To This Question Is Available To Download

Submit New Assignment

Copy and Paste Your Assignment Here