Академический Документы
Профессиональный Документы
Культура Документы
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;
using System.Text.RegularExpressions;
namespace WindowsFormsApp1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
textBox7.Text = "";
}
MessageBox.Show(listBox1.Text);
textBox2.Text = "";
textBox3.Text = "";
textBox5.Text = "";
textBox7.Text = "";
label1.Text = "";
label2.Text = "";
textBox4.Text = "";
}
}
}
else
{
if(!isEmailValid)
{
if (textBox3.Text == null)
{
MessageBox.Show("email id not entered");
}
else
{
MessageBox.Show("Enter a valid email");
textBox3.Text = "";
}
}
if (!isPhoneValid)
{
if (textBox2.Text == null)
{
MessageBox.Show("Phone no not entered");
}
else
{
MessageBox.Show("Enter a valid phone number");
textBox2.Text = "";
}
}
if(textBox5.Text!=null)
{
if (textBox5.Text != textBox7.Text)
{
MessageBox.Show("invalid confirm password");
textBox7.Text = "";
textBox5.Text = "";
}
}
if (comboBox1.Text =="")
{
MessageBox.Show("Enter a country");
}
}