VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

DBGrid Dropdown Listbox

Jason J. Martin  (1 Submission)   Custom Controls/Forms/Menus   Visual Basic 3.0   Unknown Difficulty   Wed 3rd February 2021

Ever wondered what the button_click event was for in a DBGrid? Well, this is it! You have to populate a listbox control and display that with the selection information. This will simulate a dropdown box within the dbgrid. This is an excelent way to input specific information into the dbgrid.

Returns
Nont

Side Effects
Lose the ability to use the down arrow key in the column with the button.

API Declarations
Global Declarations within form:
Dim intColIdx As Integer 'This will contain the index for the current cell in the dbgrid
Dim blnListShow As Boolean 'is the list showing or not
Dim intKeyCode As Integer 'the last key pressed within the dbgrid

Rate DBGrid Dropdown Listbox (7(7 Vote))
DBGrid Dropdown Listbox.bas

DBGrid Dropdown Listbox Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters