Dear Experts

I Have four textboxes,

I want textbox1 to accept only char data.
I want textbox2 to accept only numeric data.
I want textbox3 to accept only alphanumeric data.
I want textbox4 to accept only bolean data.

Please help

Recommended Answers

All 2 Replies

Welcome tqmd,

Sorry tqmd, but you didn't ask a question. We only give help to those who show effort. You might want to read the homework policy if you run into problems and want to ask for help here.

Agree with Adapost, not many will help those that at least are not attempting to do the work for themselves. A quick suggestion that may help though, using the proper controls will help make validation easier. Such as using the NumericUpDown control instead of a textbox to allow only numeric entries.

commented: Well said. +6
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.