473,806 Members | 2,929 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

one field on a winforms, validate not firing

I have one textbox on a form. Nothing else. The validate event doesn't
fire. Drop another textbox on the form and the validate event fires. Set
tabstop = false on the 2nd text box and the validate event on textbox1
doesn't fire again.

I now it sounds silly with only one tab stop but it is for a barcode
scanner. scan, scan, scan, esc. Thats it.

help... I need a work around.

Dec 9 '06 #1
3 1932
Jeff,

I use the leave event if the validate event does not what I want.

Cor

"Jeff Jarrell" <jj************ @yahoo.comschre ef in bericht
news:%2******** ********@TK2MSF TNGP05.phx.gbl. ..
>I have one textbox on a form. Nothing else. The validate event doesn't
fire. Drop another textbox on the form and the validate event fires. Set
tabstop = false on the 2nd text box and the validate event on textbox1
doesn't fire again.

I now it sounds silly with only one tab stop but it is for a barcode
scanner. scan, scan, scan, esc. Thats it.

help... I need a work around.

Dec 9 '06 #2
The validate event doesn't fire unless you leave the textbox,
like if you tab out of it. In my update forms, when they hit
Save, I invoke the validate event myself me.Validate() in
case they have changed the textbox they are sitting in and
didn't tab out of it.

Hope this helps.
Robin S.
-----------------------

"Jeff Jarrell" <jj************ @yahoo.comwrote in message
news:%2******** ********@TK2MSF TNGP05.phx.gbl. ..
>I have one textbox on a form. Nothing else. The validate event doesn't
fire. Drop another textbox on the form and the validate event fires. Set
tabstop = false on the 2nd text box and the validate event on textbox1
doesn't fire again.

I now it sounds silly with only one tab stop but it is for a barcode
scanner. scan, scan, scan, esc. Thats it.

help... I need a work around.

Dec 9 '06 #3
Ok, sounds good.

Thanks,
jeff

"Cor Ligthert [MVP]" <no************ @planet.nlwrote in message
news:us******** *****@TK2MSFTNG P04.phx.gbl...
Jeff,

I use the leave event if the validate event does not what I want.

Cor

"Jeff Jarrell" <jj************ @yahoo.comschre ef in bericht
news:%2******** ********@TK2MSF TNGP05.phx.gbl. ..
>>I have one textbox on a form. Nothing else. The validate event doesn't
fire. Drop another textbox on the form and the validate event fires. Set
tabstop = false on the 2nd text box and the validate event on textbox1
doesn't fire again.

I now it sounds silly with only one tab stop but it is for a barcode
scanner. scan, scan, scan, esc. Thats it.

help... I need a work around.


Dec 9 '06 #4

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

Similar topics

0
2928
by: Eric Hohnbaum | last post by:
I'm usng the WinForms DataGrid control and want to validate the phone fields and put the focus back if an error ocurrs. I have a Leave message handler attached to the TextBox of the phone number column, and validate the phone number therein against a regular expression. If it comes back bad, I want to put up a message and then set the focus back to that specific text box that they just left which contains the error. I run into trouble...
3
2791
by: Rick | last post by:
I have an interesting problem when I run the following code in Netscape (7.02) vs. IE. This page works great in IE and all my controls bring up the validation summary dialog box if the required field is not filled out. However in Netscape NONE of the required field validations occurs at all in Netscape. The form is posting correctly because I can walk through the post back process. Any ideas why this is happening or how to fix it?
5
2424
by: Do | last post by:
Hi, Has anybody run into problems with Page.IsValid? My errors show up when the fields aren't filled correctly, but my processing continues even if the page is invalid. I leave name and description blank and I do get the error messages. But the code still continues to run the addfolder method from my class. Is there something wrong with this?
2
1262
by: Adrian | last post by:
Hi everyone I have a web form where the validation works pefectly I copied the file, renamed it, and all of a sudden the validation stopped working(on the copied form). I have two panels on them. Both have validation controls in them and only one panel is visible at a time. The first panel validtion works fine, but the 2nd one doesnt. All it has is few textboxes, a requiredValidator and a image command button. The valdiation is server...
5
1661
by: John Abbler | last post by:
I'm currently testing doing some testing with other browsers and have found that my custom field validators aren't firing with Firefox or Netscape, but they work fine with Ie. Here's the code I'm using: <asp:CustomValidator id="vld1PaymentType" ClientValidationFunction="ValidateRadiobutton" runat="server" ErrorMessage="Payment Type must be selected" CssClass="ValidationMessage"></asp:CustomValidator>
0
1142
by: James Crowley | last post by:
Hi everyone, My site is randomly firing off a "ExceptionHttpException : Unable to validate data. " error on some of its forms at the moment: ------- HttpException : Unable to validate data. http://www.developerfusion.co.uk/Members/Private/EditProfile.aspx (Referred by http://www.developerfusion.co.uk/Members/Private/EditProfile.aspx) at System.Web.Configuration.MachineKeySection.GetDecodedData(Byte buf, Byte modifier, Int32 start,...
7
1836
by: James Crowley | last post by:
Hi everyone, My site is randomly firing off a "ExceptionHttpException : Unable to validate data. " error on some of its forms at the moment: ------- HttpException : Unable to validate data. http://www.developerfusion.co.uk/Members/Private/EditProfile.aspx (Referred by http://www.developerfusion.co.uk/Members/Private/EditProfile.aspx) at System.Web.Configuration.MachineKeySection.GetDecodedData(Byte buf, Byte modifier, Int32 start,...
1
2450
by: Robbert van Geldrop | last post by:
Hello, My site is randomly firing off a "ExceptionHttpException : Unable to validate data. " error on some of its forms at the moment: ------- HttpException : Unable to validate data. -- It is the same issue as reported at:
2
1548
by: goscottie | last post by:
How do I prevent field validator which resides outside of UpdatePanel from firing off? The label will update correctly without RequiredFieldValidator via Ajax. TIA. Code below.... <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication1._Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
0
9719
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9597
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10620
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10369
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10110
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7650
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6877
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5546
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4329
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.