code for textbox that textbox only accept caharcters or letters, if any textbox is empty then textbox color becomes red. all information show in other text box.
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Vp4
1. ASSIGNMENT # 4
SUBMITTED TO:
SIR RAMEEZ IQBAL
SUBMITTED BY:
RABIA ZAFAR
17581556-045
SECTION ‘A’
VISUAL PROGRAMMING
2. 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 assignment
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button2_Click(object sender, EventArgs e)
{
this.Close();
}
private void textBox4_TextChanged(object sender, EventArgs e)
{
}
private void textBox4_KeyPress(object sender, KeyPressEventArgs e)
{
e.Handled = !char.IsDigit(e.KeyChar) && !char.IsControl(e.KeyChar);
}