Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / April 2005

Tip: Looking for answers? Try searching our database.

How to achieve the following functionality with Windows Forms ?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Al - 01 Apr 2005 10:41 GMT
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.
J L - 02 Apr 2005 01:57 GMT
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/v
bnet04082003.asp


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

John

>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
[quoted text clipped - 11 lines]
>connecting / wiring the columns and the method checks together. I was
>planning on using DataGrids, but can change that if I need to.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.