473,804 Members | 3,271 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Executing Validated Textbox Event By Code

7 New Member
Hi, I want to execute an event (in this case Validated event) by code, it can also be a Lostfocus event, I was searching around the web and reading, I cant find the way to do this with any event, maybe it is not possible ? If it is, please, anyone can explain me how ?
May 9 '07 #1
1 1084
Frinavale
9,735 Recognized Expert Moderator Expert
Hi, I want to execute an event (in this case Validated event) by code, it can also be a Lostfocus event, I was searching around the web and reading, I cant find the way to do this with any event, maybe it is not possible ? If it is, please, anyone can explain me how ?
Have you tried JavaScript?
Could you explain what your trying to do a little more please?
:)

-Frinny
May 9 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
1067
by: Bevo | last post by:
I validate my textbox input data on its Validating-event. But what if the textbox has focus when I click on the windows close button? Then I dont want to validate - at least not until I've confirmed the 'Do you want to save your changes?' question Since the textbox's Validating is fired before the form's Closing event, how can I cancel the Validating? Whats the best way to deal with this standard issue?
2
3534
by: Ken Loomis | last post by:
Hello: I'm using the validating event on a text boxes to test for valid dates, doubles, etc. The problem is that if the field is not required and a blank value is OK and the user deletes a previous non-blank value, the validaing event keeps putting the non-blank value back in the text box and doesn't allow the blank value. Is this unavoidable in the built-in validating event and do I need just to write my own validation event?
2
1619
by: DesignerX | last post by:
I have a user control that contains a custom control, both are loaded dynamically. The custom control has a simple required field validator and a text box to validate. When the submit button in the user control is pressed the textbox does not seem to be validated. How do I even begin to troubleshoot this?
1
2596
by: Simon Verona | last post by:
I'm confused! I have a usercontrol which is basically an extension of the textbox - it is hosted in the user control because there are other controls held on the usercontrol as well. I have code that I've put in the mybase.validated event that validates data and does other work. This should run as the user exits the usercontrol (ie tabs out of the textbox or clicks on another control). 99.9% of the time it does, but in some...
7
1760
by: Bruce HS | last post by:
I'd like to call my ancestor Validation Function every time any control on a Win Form generates a Validating or Validated event. I'm using VB. I've extended Textbox, for instance, to have its events do this for me, but my extended textbox doesn't get created by those wonderful form setup wizards. So, 1) Is there a way I can pick up these events without having to code for each control and without using custom extended controls, OR
1
1297
by: Tedmond | last post by:
Dear all, I have deployed my windows application to several user PCs with XP and Win2000. However, there is something strange that ONE of the TextBox Validated event doesn’t fire in ONE of the PC. Basically, the service pack and the .Net framework are same. I could not find out what cause the problem from that PC. Does anyone has such experience before and tell me why and how to solve it? Thanks for any help!
5
7460
by: =?Utf-8?B?QmVuIFIu?= | last post by:
Hi, In a .NET 2.0 winforms application, I've got a textbox that, when updated, uses the validated event to cascade the change to another textbox (along with another value). This works well if the user does indeed move the cursor to another textbox, but if the user clicks my "done" toolstripbutton after making a change in the textbox but without moving the cursor out, the validated event never fires. I have a pretty bad workaround where...
7
6033
by: jphaycock | last post by:
Hi all I am calling a method in a Page_Load event that makes use of a value from a text box. Unfortunately the textbox value is only set after a javascript runs and the page is rendered. Therefore the textbox is actually empty when the Page_Load event fires. Is there a way to execute the method after the javascript has run and
2
5711
by: Tony | last post by:
Hello! There is an event Validating that can be used on TextBox that are very useful but there are also an event named Validated that I can't find much use of. Have you see any useful times where this event Validated can be used ? //Tony
0
9708
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
9587
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,...
1
10324
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10085
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...
0
9161
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6857
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
5662
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4302
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
2
3827
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.