473,399 Members | 3,832 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Windows Application validation

I have a user control in a form (form has a toolbar.)

In the user control I have some text boxes for which I need to do some
validations.
Which is the best event to do this? Ideally I should do the validation
on leaving the control itself and bring the focus back if the control
fails the validation.

Also, the validation should happen even if the user clicks on a
toolbar button after entering the data in a text box.

Oct 15 '07 #1
2 1432
Krish <ba****@gmail.com>'s wild thoughts were released on
Mon, 15 Oct 2007 04:40:50 -0700 bearing the following fruit:
>I have a user control in a form (form has a toolbar.)

In the user control I have some text boxes for which I need to do some
validations.
Which is the best event to do this? Ideally I should do the validation
on leaving the control itself and bring the focus back if the control
fails the validation.
Ideally, you shouldn't as the makes for a very annoying
interface. Do the validation once the user is finished, ie
when the click the submit, ok, apply button.

J
>Also, the validation should happen even if the user clicks on a
toolbar button after entering the data in a text box.
--
Jan Hyde

https://mvp.support.microsoft.com/profile/Jan.Hyde
Oct 15 '07 #2
On Mon, 15 Oct 2007 15:01:07 +0100, "Jan Hyde (VB MVP)"
<St***********@REMOVE.ME.uboot.comwrote:
>Ideally, you shouldn't as the makes for a very annoying
interface. Do the validation once the user is finished, ie
when the click the submit, ok, apply button.
How true! Many users don't even look at the screen as they type and
will be very frustrated that the last data they had typed went nowhere
because a popup appeared to prompt them to correct the data!

Validate the data at once. Perhaps you could have a 'dirty bit' whose
status you check before doing any other operations that will trigger
the validation logic.

--
http://bytes.thinkersroom.com
Oct 15 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Frans Bouma | last post by:
Hello, It seems VS.NET 2003 locks up itself and the complete shell (mouse locks also) when entering a breakpoint in a special situation. Below is the code to reproduce this behavior. It...
5
by: RAJ | last post by:
hi plz tell me how to know "how window is going to close"... i have to right code for X button of forms... plz telll me thanks bye
2
by: Jeremy Chapman | last post by:
This is odd behavior. In my aspnet 2.0 app (basic app, nothing out of the ordinary here), if I am using my iPAQ handheld device and I hit the refresh button on my page, I get an error "Validation...
16
by: Daniela Roman | last post by:
Hello, can someone tell me the main differences between the web and windows based applications? thank you
2
by: Looch | last post by:
All, I have a form that has a text box and button - when the button is pressed the form will close if the correct text is in the text box - works fine. However, if the text box is blank I...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.