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 Data Binding / February 2006

Tip: Looking for answers? Try searching our database.

Checking User Data Input on a Form

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Laurin Stoll - 15 Feb 2006 18:19 GMT
Hi

Sorry my english isn't the best ;-)

I've got a Windows Application Project in Vb.NET.
There's a form which contains some Textboxes, an component of my typed
DataSet, a BindingSource, a BindingNavigation, and a datatableadapter
component.
All this is created by the designer, i just dragged the table on my form
from the databinding window.
That all seems to work fine ;-)

Now i've a little problem. There are some bound textboxes (Firstname,
Lastname, Street) which must not be empty. The must contain a value. How can
i check, if the user has filled out these field, before he navigates to the
next record?

Well, I could put a validation in every textboxs validating - event
procedure. But isn't there a better solution?

Thanks in advance

Kind regards

Laurin Stoll
Laurin Stoll - 17 Feb 2006 15:21 GMT
Sorry that i post again.

I found a class in ASP.NET named RequiredFieldValidator. Why isn't it
possible to set some required fields on Databound Controls in Windows Forms.

Some idea?
I just wan't to set some required fields..... i can't realise this with the
validating event - what if the user didn't set the focus to a field?

> Hi
>
[quoted text clipped - 21 lines]
>
> Laurin Stoll

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.