English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

What property of what control needs to be set for control A to be validated?

2007-01-10 01:15:54 · 4 answers · asked by bhs00 2 in Computers & Internet Programming & Design

4 answers

Some controls have Validate procedures, so you may just need to enter code into that procedure...depends on what KIND of controls you are talking about here.

2007-01-10 09:44:17 · answer #1 · answered by Richard H 7 · 0 0

No need to set the property of that control...
Just use the LostFocus event of Control A...

2007-01-10 02:55:48 · answer #2 · answered by Anonymous · 0 0

I usually use the .LostFocus event to validate.

ControlA_LostFocus()

It really kinda depends on what you are trying to validate. For numbers and dates I would suggest looking into the microsoft masked edit control. Its pretty decent and has alot of flexibility once you get used to how it works.

Good luck!

2007-01-10 02:13:51 · answer #3 · answered by Special Ed 5 · 0 0

attempt this: upload a label, a timer and a couple of buttons. length your form to 3 hundred by applying 3 hundred. cut back and paste this into the code pane. play around with the "x" value and the timer era. Public classification Form1 Dim x, y As long inner maximum Sub Timer1_Tick(ByVal Sender As merchandise, ByVal e As EventArgs) Handles Timer1.Tick x = x - 5 Label1.region = New factor(x, y) If x < -20 Then x = 3 hundred end Sub inner maximum Sub Button1_Click(ByVal sender As gadget.merchandise, ByVal e As gadget.EventArgs) Handles Button1.click x = 350 y = 10 Button1.text cloth = "start up" Timer1.Enabled = actual end Sub inner maximum Sub Button2_Click(ByVal sender As gadget.merchandise, ByVal e As gadget.EventArgs) Handles Button2.click Button2.text cloth = "end" Timer1.Enabled = fake end Sub end classification : )

2016-12-12 08:20:20 · answer #4 · answered by girardot 4 · 0 0

fedest.com, questions and answers