Home
Privacy Policy
Saturday, July 11, 2015
Edit data in msflexgrid vb6
6:11 PM
Unknown
No comments
Private Sub MSFlexGrid1_KeyPress(KeyAscii As Integer) With MSFlexGrid1 Select Case KeyAscii Case 8: 'IF KEY IS BACKSPACE THEN If .Text <> "" Then .Text = _ Left$(.Text, (Len(.Text) - 1)) Case 13: 'IF KEY IS ENTER THEN Select Case .Col Case Is < (.Cols - 1): SendKeys "{right}" Case (.Cols - 1): If (.Row + 1) = .Rows Then .Rows = .Rows + 1 End If SendKeys "{home}" + "{down}" End Select Case Else .Text = .Text + Chr$(KeyAscii) 'write your own keyascii Validations under 'commented lines Select Case .Col Case 0, 1, 2: 'if (your condition(s)) then 'accept only charectors 'Else ' keyascii=0 'End If Case Else: End Select End Select End With End Sub
Posted in:
Older Post
Home
0 comments:
Post a Comment
Subscribe to our RSS Feed
Be Our Fan on Facebook
Share
Popular
Tags
Blog Archives
Popular Posts
About Me
Unknown
View my complete profile
Powered by
Blogger
.
Blog Archive
▼
2015
(3)
▼
July
(3)
Edit data in msflexgrid vb6
Connecting To A SQL Server Database Using ADODB
Formating dates and times in VB6
Blog Archive
▼
2015
(3)
▼
July
(3)
Edit data in msflexgrid vb6
Connecting To A SQL Server Database Using ADODB
Formating dates and times in VB6
0 comments:
Post a Comment