473,761 Members | 7,290 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

validation process in winform

karthickkuchanur
156 New Member
Iam developing visual studio window application i have lot o textbox in it how can i validate when the user enter the value,if it is in web form means i can easily validate using javascript.plea se help me how can test it whether if correct or not and another thing id iam not want to validate the testbox indivitually please sent me the logic using looping condition or something else
Dec 8 '07 #1
2 1381
khani
8 New Member
Iam developing visual studio window application i have lot o textbox in it how can i validate when the user enter the value,if it is in web form means i can easily validate using javascript.plea se help me how can test it whether if correct or not and another thing id iam not want to validate the testbox indivitually please sent me the logic using looping condition or something else
i cant understand your question completly. any how i am giving you a suggesstion.it can help you.
as you have told that you have a lot of textboxes.you can make a sub routien add handler to that sub routien for all textbox controle's key press events. like this

Public Function ValidateControl e(you can mentioned Parameters here) hadles textbox1.keypre ss,textbox2.key press.......... ............... ........

'Here you will write your entire logic

End Function
now call this function at your required event.
Dec 8 '07 #2
karthickkuchanur
156 New Member
i cant understand your question completly. any how i am giving you a suggesstion.it can help you.
as you have told that you have a lot of textboxes.you can make a sub routien add handler to that sub routien for all textbox controle's key press events. like this

Public Function ValidateControl e(you can mentioned Parameters here) hadles textbox1.keypre ss,textbox2.key press.......... ............... ........

'Here you will write your entire logic

End Function
now call this function at your required event.
ya that what i want thank u
Dec 8 '07 #3

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

Similar topics

0
1380
by: David Pope | last post by:
What's the best way to force validation on all controls on a winform whether or not they have been active? Thanks, D.
41
2652
by: Gérard Talbot | last post by:
Cross-posted to: comp.infosystems.www.authoring.html and alt.html Followup-to: comp.infosystems.www.authoring.html 1- One day, I stumbled across a website that offers to validate webpages. What was really special about that site is that the validation service was available in Russian, German, Spanish and English. Now, I can't find this site anymore. I did search google. Do you know such site? What's its url? 2- Generally speaking, the...
0
4681
by: rob | last post by:
Hello, I have a DOS program that I need to execute from a WinForm application. This DOS program will take a long time to execute. During execution it prints out messages. While the DOS program is still running I want to catch these messages and display them to the user. I managed to create the process and redirect the output. The problem I am having is that the even handler for OutputDataReceived is not called until the DOS program is...
3
3815
by: Rob Bradford | last post by:
All. I'm fairly new to VB.Net, and VB in general so please bear with me. I have form with two or three controls that require validation on exit. I have done this by using the "leave" event of the objects conserned, it all works very well. Except if the user clicks on the exit button whilst in one of these fobjects/fields . Clicking the Exit button executes the validataion. I
6
1438
by: serge calderara | last post by:
Dear all, I have read that ASP.NET does double user input validation of control when they are place on the page. Once on teh client side and again from server side right ? Could explain how this process is exaclty working ? regards thnaks for your help
3
6338
by: Bob Alston | last post by:
I have a routine to copy data to new versions of my app via insert into sql statements. Unfortunately, due to evolution of my app, sometimes the new version has more restrictive editing than an older version that I am updating. Thus I get this message. It tells me only how many records have errors, not which errors or which records. Anyone have a nice solution to identifying the specific records involved? Maybe even the specific...
1
7335
by: Marek | last post by:
Hi all, who can give me an answer on this question: how to validate controls on WinForm? So clicking on AceptButton does not return control from WinForm to program until all controls have proper values. TIA, MP
8
3228
by: Henrik | last post by:
Hi Is there any way to see what the System process is doing? We have developed an application running at a production site to measure and optimize the production. The application needs to be responsive at all times during production. I'm experiencing some problems with my application not responding or responding slow. I suspeced the problem had to do with high CPU utilization
3
3672
by: Water Cooler v2 | last post by:
Sorry for asking this beginner question. I've written DTDs so far and read about XML Schemas. I understand that they are a replacement of the DTD fundamentally, and therefore allow for the validation of an XML document. My question really is: Why do we need XML Schemas other than for validation of an XML document? I am more interested in knowing if already available
12
2486
by: =?Utf-8?B?ZXAu?= | last post by:
What is preferred method to start an app process and then fill in form fields? The following prog does not compile (b/c AppActivate does not have the correct param): ---------------------------------------------------------------------------------------- Imports Microsoft.VisualBasic Imports System.Windows.Forms Imports System.Diagnostics Module Module1 Sub Main()
0
9345
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
10115
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...
1
9905
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
8780
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...
1
7332
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
6609
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
5229
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
3881
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
3
2752
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.