Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hi everyone, For my Assignment I have to use C# in order to create a validation form and include the following things to register and

Hi everyone,

For my Assignment I have to use C# in order to create a validation form and include the following things to register and validate: Email Address, Username, Password, Retype Password, and a Submit Button. I have figured out some of the code for the Email Address validation:

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 Validation4

{

public partial class Form1 : Form

{

public Form1()

{

InitializeComponent();

}

private void textBox1_TextChanged(object sender, EventArgs e)

{

bool IsValidEmail(string email)

{

try

{

var addr = new System.Net.Mail.MailAddress(email);

return addr.Address == email;

}

catch

{

return false;

}

if (textBox1.Text == " ")

MessageBox.Show("Enter Some Text in TextBox1");

}

}

private void textBox3_TextChanged(object sender, EventArgs e)

{

}

private void textBox2_TextChanged(object sender, EventArgs e)

{

}

private void textBox4_TextChanged(object sender, EventArgs e)

{

}

}

}

But I am not quite sure how to code for the other necessary parts of the assignment. Here is the actual Assignment:

Using the appropriate tool for your language, (as noted above), implement a user interface that allows the user to enter data. You can create the interface based on your Unit 5 wireframe, or you can create a new interface. Validate the data according to your data validation plan. When the user interface is complete, ask at least one person to use the interface and provide feedback. Test that your data validation plan is implemented and working correctly. Record the results of your test.

For the test, ask the user to enter both correct and incorrect data and both correct and incorrect formats to demonstrate that validation is working. Your test report should list each input provided by the user and the result.

Please let me know if you need a copy of my validation plan paper.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions