Solved

VideoSoft vsflex control

Posted on 1998-06-01
3
1,360 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 50 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

707 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now