Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Data Validataion in Text Box and MSHFlexGrid
Message
From
15/11/2002 03:18:32
 
 
To
15/11/2002 01:03:52
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00723071
Message ID:
00723082
Views:
10
This message has been marked as the solution to the initial question of the thread.
Hi again :-)
I guess you use my suggestion to enter data into MSHFlexGrid, which is read-only, using TextBox.
In VB there is also Validate event (in your case on TextBox), which you can use to validate user input before writing it to RecordSet behind the MSHFlexGrid.
Remember only that there are possibility this event to not fire. Every control in VB has property CausesValidation with default value True. You should not change this value. It's purpose is for control of raising Validate event. WHEN YOU MOVE FOCUS FROM ONE CONTROL TO ANOTHER, VALIDATE EVENT OF THE FIRST CONTROL IS RAISED ONLY IF CausesValidation PROPERTY OF THE SECOND CONTROL IS SET TO True!

Plamen Ivanov
MCSD .NET Early Achiever and MCAD .NET Charter Member (VB .NET/SQL Server 2000)
MCSD (VB 6.0/SQL Server 2000)

VB (.NET) - what other language do you need in the whole Universe?...

Previous
Next
Reply
Map
View

Click here to load this message in the networking platform