I have a Textbox named txtage.text.Now I want When Insert in txtage.text as 30/12/1980.
disable tabindex.and messagebox show "You can not give admission".If Insert in txtage.text as 30/12/2005.
Enable Tab index .its mean student 's age must be 6 year not greater nor less.
yousafc#
0
Junior Poster in Training
Recommended Answers
Jump to PostYou can simply disable textBox:
txtage.Enabled = false;
Jump to PostWhy not use a DateTimePicker control to input a date, instead of a TextBox?
A DateTimePicker has ValueChanged and Validating events you could use to check the date entered and act accordingly.
All 5 Replies
Mitja Bonca
557
Nearly a Posting Maven
yousafc#
0
Junior Poster in Training
ddanbe
2,724
Professional Procrastinator
Featured Poster
Mitja Bonca
557
Nearly a Posting Maven
yousafc#
0
Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.