Solved

VideoSoft vsflex control

Posted on 1998-06-01
3
1,421 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

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…
Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
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 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…

688 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