Solved

VideoSoft vsflex control

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

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…
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…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

914 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

16 Experts available now in Live!

Get 1:1 Help Now