Lab #3 - Account Form (Menu Items & Group Boxes) Attached Files: AccountForm_Image4.JPG XXXXXXXXXXKB) AccountForm_Image3.JPG XXXXXXXXXXKB) AccountForm_Image2.JPG XXXXXXXXXXKB) AccountForm_Image1.JPG...

1 answer below »


Lab #3 - Account Form (Menu Items & Group Boxes)

Attached Files:




For this lab, you will be creating an Account form. This form will be used to both view and
modify the user's account. Please use the four attachments below as a guide when building
your form. For the Account form, use a minimum dimension of 900x690 and add the additional
controls to scale. Be sure to place all controls on top of a panel container to allow for easy
enable/disable of fields.


Lastly, don't forget to create click events for the sub-menu items for File, Edit, and Help.

Answered Same DayApr 01, 2021

Answer To: Lab #3 - Account Form (Menu Items & Group Boxes) Attached Files: AccountForm_Image4.JPG...

Neha answered on Apr 07 2021
151 Votes
AccountFormApp/.vs/AccountFormApp/v15/.suo
AccountFormApp/.vs/AccountFormApp/v15/Server/sqlite3/db.lock
AccountFormApp/.vs/AccountFormApp/v15/Server/sqlite3/storage.ide
AccountFormApp/.vs/AccountFormApp/v15/Server/sqlite3/storage.ide-shm
AccountFormApp/.vs/AccountFormApp/v15/Server/sqlite3/storage.ide-wal
AccountFormApp/AccountFormApp.sln
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.28307.1062
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AccountFormApp", "AccountFormApp\AccountFormApp.csproj", "{3D917B27-C548-4619-8679-4F7460F9C5AD}"
EndProject
Global
    GlobalSection(SolutionConfigurationPlatforms) = preSolution
        Debug|Any CPU = Debug|Any CPU
        Release|Any CPU = Release|Any CPU
    EndGlobalSection
    GlobalSection(ProjectConfigurationPlatforms) = postSolution
        {3D917B27-C548-4619-8679-4F7460F9C5AD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
        {3D917B27-C548-4619-8679-4F7460F9C5AD}.Debug|Any CPU.Build.0 = Debug|Any CPU
        {3D917B27-C548-4619-8679-4F7460F9C5AD}.Release|Any CPU.ActiveCfg = Release|Any CPU
        {3D917B27-C
548-4619-8679-4F7460F9C5AD}.Release|Any CPU.Build.0 = Release|Any CPU
    EndGlobalSection
    GlobalSection(SolutionProperties) = preSolution
        HideSolutionNode = FALSE
    EndGlobalSection
    GlobalSection(ExtensibilityGlobals) = postSolution
        SolutionGuid = {557BC882-7C82-4B3F-9033-5F058D32ACF2}
    EndGlobalSection
EndGlobal
AccountFormApp/AccountFormApp/AccountFormApp.csproj



Debug
AnyCPU
{3D917B27-C548-4619-8679-4F7460F9C5AD}
WinExe
AccountFormApp
AccountFormApp
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.settings
True






AccountFormApp/AccountFormApp/App.config




AccountFormApp/AccountFormApp/bin/Debug/AccountFormApp.exe
AccountFormApp/AccountFormApp/bin/Debug/AccountFormApp.exe.config




AccountFormApp/AccountFormApp/bin/Debug/AccountFormApp.pdb
AccountFormApp/AccountFormApp/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 AccountFormApp
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void saveChangesToolStripMenuItem_Click(object sender, EventArgs e)
{
if(userName.Text == "")
{
MessageBox.Show("User name can't be blank");
}
else if (pwd.Text == "")
{
MessageBox.Show("Password can't be blank");
}
else if (fname.Text == "")
{
MessageBox.Show("First Name can't be blank");
}
else if (lname.Text == "")
{
MessageBox.Show("Last Name can't be blank");
}
else if (street.Text == "")
{
MessageBox.Show("Street field can't be blank");
}
else if (code.Text == "")
{
MessageBox.Show("Zip Code can't be blank");
}
else if (city.Text == "")
{
MessageBox.Show("City can't be blank");
}
else if (email.Text == "")
{
MessageBox.Show("Email field can't be blank");
}
else if (cell.Text == "")
{
MessageBox.Show("Cell field can't be blank");
}
else if (string.IsNullOrEmpty(state.Text))
{
MessageBox.Show("Please select state");
}
else
{
MessageBox.Show("Changes are saved");
}
}
private void closeToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Close();
}
private void switchToModifyModeToolStripMenuItem_Click(object sender, EventArgs e)
{
userName.Enabled = true;
pwd.Enabled = true;
fname.Enabled = true;
lname.Enabled = true;
groupBox1.Enabled = true;
groupBox2.Enabled = true;
groupBox3.Enabled = true;
saveChangesToolStripMenuItem.Enabled = true;
}
private void switchToViewModeToolStripMenuItem_Click(object sender, EventArgs e)
{
userName.Enabled = false;
pwd.Enabled = false;
fname.Enabled = false;
lname.Enabled = false;
groupBox1.Enabled = false;
groupBox2.Enabled = false;
groupBox3.Enabled = false;
saveChangesToolStripMenuItem.Enabled = false;
}
private void aboutToolStripMenuItem_Click(object sender, EventArgs e)
{
MessageBox.Show("This is an account registration form which allows view and modify operations");
}
}
}
AccountFormApp/AccountFormApp/Form1.Designer.cs
namespace AccountFormApp
{
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.menuStrip1 = new System.Windows.Forms.MenuStrip();
this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.saveChangesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.closeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.editToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.switchToViewModeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.switchToModifyModeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.helpToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.aboutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
this.label6 = new System.Windows.Forms.Label();
this.label7 = new System.Windows.Forms.Label();
this.label8 = new System.Windows.Forms.Label();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.groupBox2 = new System.Windows.Forms.GroupBox();
this.groupBox3 = new System.Windows.Forms.GroupBox();
this.label9 = new System.Windows.Forms.Label();
this.label10 = new System.Windows.Forms.Label();
this.label11 = new System.Windows.Forms.Label();
this.label12 = new System.Windows.Forms.Label();
this.label13 = new System.Windows.Forms.Label();
this.userName = new System.Windows.Forms.TextBox();
this.fb = new System.Windows.Forms.TextBox();
this.ig = new System.Windows.Forms.TextBox();
this.twitter = new System.Windows.Forms.TextBox();
this.cell = new System.Windows.Forms.TextBox();
this.email = new System.Windows.Forms.TextBox();
this.city = new System.Windows.Forms.TextBox();
this.code = new System.Windows.Forms.TextBox();
this.street = new System.Windows.Forms.TextBox();
this.lname = new System.Windows.Forms.TextBox();
this.pwd = new System.Windows.Forms.TextBox();
this.fname = new System.Windows.Forms.TextBox();
this.state = new System.Windows.Forms.ComboBox();
this.menuStrip1.SuspendLayout();
this.groupBox1.SuspendLayout();
this.groupBox2.SuspendLayout();
this.groupBox3.SuspendLayout();
this.SuspendLayout();
//
// menuStrip1
//
this.menuStrip1.ImageScalingSize = new System.Drawing.Size(20, 20);
this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.fileToolStripMenuItem,
this.editToolStripMenuItem,
this.helpToolStripMenuItem});
this.menuStrip1.Location = new System.Drawing.Point(0, 0);
this.menuStrip1.Name = "menuStrip1";
this.menuStrip1.Size = new System.Drawing.Size(882, 28);
this.menuStrip1.TabIndex = 0;
this.menuStrip1.Text = "menuStrip1";
//
// fileToolStripMenuItem
//
this.fileToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.saveChangesToolStripMenuItem,
this.closeToolStripMenuItem});
this.fileToolStripMenuItem.Name = "fileToolStripMenuItem";
this.fileToolStripMenuItem.Size = new System.Drawing.Size(44, 24);
this.fileToolStripMenuItem.Text = "File";
//
// saveChangesToolStripMenuItem
//
this.saveChangesToolStripMenuItem.Name = "saveChangesToolStripMenuItem";
this.saveChangesToolStripMenuItem.Size = new System.Drawing.Size(216, 26);
this.saveChangesToolStripMenuItem.Text = "Save Changes";
this.saveChangesToolStripMenuItem.Click += new System.EventHandler(this.saveChangesToolStripMenuItem_Click);
//
// closeToolStripMenuItem
//
this.closeToolStripMenuItem.Name = "closeToolStripMenuItem";
this.closeToolStripMenuItem.Size = new System.Drawing.Size(216, 26);
this.closeToolStripMenuItem.Text = "Close";
...
SOLUTION.PDF

Answer To This Question Is Available To Download

Submit New Assignment

Copy and Paste Your Assignment Here