validation of TextBoxes!?

This is a discussion on validation of TextBoxes!? within the C# Programming forums, part of the General Programming Boards category; Hello I build a form with some text boxes and to every text box there is validating option(form 1) Now ...

  1. #1
    Registered User
    Join Date
    Feb 2008
    Location
    Israel
    Posts
    23

    validation of TextBoxes!?

    Hello

    I build a form with some text boxes and to every text box there is validating option(form 1)
    Now i try to build another form but he uses the same validation ...
    How can i use in form2 the same validation function from form1 ?

    sorry about the broken English

  2. #2
    Dr Dipshi++ mike_g's Avatar
    Join Date
    Oct 2006
    Location
    On me hyperplane
    Posts
    1,218
    Maybe create a class that inherits a 'text box' with functions to do recurring stuff (like validate content). Or you could create a function in your main interface/class that gets the text and validates it. Or you could make a global funcion for it.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 11
    Last Post: 05-10-2009, 08:51 AM
  2. set validation
    By jmarsh56 in forum C++ Programming
    Replies: 4
    Last Post: 12-13-2005, 07:49 AM
  3. DATE <TIME.H> data validation
    By bazzano in forum C Programming
    Replies: 4
    Last Post: 08-07-2005, 01:10 AM
  4. validation routine help plz
    By rajesh23 in forum C Programming
    Replies: 8
    Last Post: 09-23-2003, 07:21 AM
  5. [C#] Validation class for events?
    By gicio in forum C# Programming
    Replies: 4
    Last Post: 01-03-2003, 11:19 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21