How to achieve the following functionality with Windows Forms ?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a useful framework, written in a different language (PowerBuilder),
which I'd like to replicate in .Net and Forms, but I'm unsure of how to
approach it, as the Event model is being used different between the
development environments.

Currently we have data entry screens, whose columns have been "wired" into a
class that performs checks on the entered data. As the user "leaves" a
column, the specific check / business rule is carried out. A lot of the
checks are common across all the screens and linking the column to the
specific method to be called is as easy a giving the column the appropriate
Name.

How can I create my own framework which would allow an easy method of
connecting / wiring the columns and the method checks together. I was
planning on using DataGrids, but can change that if I need to.
 
Check out this link on extended providers. It is for text boxes but I
believe it could be used on any UI component. I have used it with
modifications to do exactly what you are saying. I validate both as
the user types in a text box and when they leave it. I also use an
error provider to put a nice visual error indication immediately with
an error message that displays when the cursor hovers over the icon.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnadvnet/html/vbnet04082003.asp

BTW...you can use the code from this article as-is and it is pretty
good or extend as you wish.

John
 
Back
Top