Find Code:
All Words
Any of the Words
Exact Phrase
Home
:
Code
:
Forums
:
Submit
:
Mailing List
:
About
:
Contact
Code
All
VB.NET
ASP.NET
C#
VB Classic
ASP Classic
Snippets
Popular
Resources
Submit Code
Forums
Articles
Tips
Links
Books
Contest
Link to us
This is code for writing into the cell of msflexgr...
Author:
saurabh kaul
Submitted:
3/23/2001
Version:
VB6
Compatibility:
VB6
Category:
ActiveX
Views:
15508
This is code for writing into the cell of msflexgrid, without using a temp textbox.
Declarations:
'none
Code:
take a msflexgrid and name it as msfgExperience and insert the following code Private Sub msfgExperience_KeyPress(KeyAscii As Integer) Dim i If KeyAscii = 13 Then SendKeys "{Right}" If msfgExperience.Col = 2 Then If (msfgExperience.Row + 1) = msfgExperience.Rows Then i = MsgBox("Do You wish to Add More Records", vbYesNo) If i = vbYes Then msfgExperience.Rows = msfgExperience.Rows + 1 msfgExperience.SetFocus SendKeys "{Down}" SendKeys "{Home}" ElseIf i = vbNo Then cmbCompName.SetFocus End If Else SendKeys "{Down}" SendKeys "{Home}" End If End If ElseIf KeyAscii = 8 Then If msfgExperience.Text = "" Then msfgExperience.Text = "" Else msfgExperience.Text = Left$(msfgExperience.Text, (Len(msfgExperience.Text) - 1)) End If Else msfgExperience.Text = msfgExperience.Text + Chr(KeyAscii) End If End Sub
Home
|
Forums
|
Submit
|
Books
|
Mailing List
|
Advertising
|
About
|
Contact
© 2024 A1VBCode. All rights reserved.
Legal disclaimer & terms of use
Privacy statement