[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

VideoSoft vsflex control

Posted on 1998-06-01
3
Medium Priority
?
1,470 Views
Last Modified: 2012-06-21
I'm testing this grid control and I want the combobox in a cell to drop down then I click on it. It only works when I use the keybord, I thougth the following code would work but it doesn't any idees? Which grid control do you prefer, why?


Private Sub vsFlexArray1_BeforeEdit(ByVal Row As Long, ByVal Col As Long, Cancel As Boolean)
    If Col = 1 Then vsFlexArray1.ComboList = "Red|Green|Blue|Other"

End Sub

Private Sub vsFlexArray1_Click()
    Call vsFlexArray1_BeforeEdit(vsFlexArray1.Row, vsFlexArray1.Col, False)
 
End Sub

0
Comment
Question by:manne
  • 2
3 Comments
 
LVL 6

Accepted Solution

by:
clifABB earned 200 total points
ID: 1462233
Keep the code in BeforeEdit, but place the following code in the FlexArray's click event:

Private Sub vsFlexArray1_Click()
    If vsFlexArray1.Col = 1 Then vsFlexArray1.EditCell
End Sub


I like VSFlex.  It's lightweight, easy to use, and they have great tech support (when you can get through).
0
 
LVL 6

Expert Comment

by:clifABB
ID: 1462234
Oh, by the way, the reason your code wasn't working is because
Combolist only works within BeforeEdit *and* when the cell is in edit mode.
0
 

Author Comment

by:manne
ID: 1462235
I short and good answer, thank you!
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month18 days, 7 hours left to enroll

826 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question