To make your application accessible when using this component, you must provide an additional, accessible feedback mechanism.
hello does anyone know how i go about stopping users go past 6000 chars in my textbox i tried using rang validation but seems to be for numeric values any1 got any ideas of how i can accomplish this [:)] Thanks Andy, This will take a little bit of work to fit into your solution, but I think character counters are simply the best way of managing the length of a text box. It is so much easier when you know how much you have to work with.
If it is not in order then i need to display a message as "number" is missing For example : In textbox i have entered 3 and click tab : I need to display message as "Number is not in order , number "1" and "2" is missing " I don't know whether this also works in c#2.0, this is my experience in c#3.0: Why do you use Text Box_Leave for that?
You are going to need to learn to learn this pattern if you want to write maintainable gui programs anyway.
would somebody show me a convenient way to validate Textbox's value are not null or empty in Winform.
if-else condition is only good for fewer textboxs in a winform or solution, if(Textbox1.text==null) else but if there are lots of textbox?
@mohit2k8 You have many options, IMO, worst is to create a helper method that does this on a list of text components, much better is to learn the decorator pattern: You decorate the text boxes with ability to validate their text.
This example extends previous article how to show an Input Box in C# using simple static method. This code shows the Input Box class implementation.
I hope that helps, Brendan This will take a little bit of work to fit into your solution, but I think character counters are simply the best way of managing the length of a text box. It is so much easier when you know how much you have to work with. Hi, late reply , but some guys might hit this thread.