VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



AutoText/Combo ActiveX Control


Category: Custom Controls/Forms/Menus
Compatability: Visual Basic 3.0
Difficulty: Advanced
Date Added: Wed 3rd February 2021
Rating: (4 Votes)

Autotext is an extended API implementation of Visual Basic's Combo Box. The control can be used as an autotype combobox or an autotype textbox. This code contains a proper implementation of an API timer class as well, using soft references to avoid GPFs. Allows custom context menus and allows the default context menus to be disabled. Raises a Menu_Click event which specifies which menu item was clicked. Has mouse down, mouse move and mouse up events. Code shows how to create a mouse hook. Switchboard code insures that the proper control recieves the right notifications. Has a SyncByItemData function to select an entry by an ItemData entry. Has a FillWithRecSet function to enable it to be filled directly with a recordset. You can specify the ordinal postion within the recordset that you want the drop-down list to be filled with. If you do not require the ItemData to be set, you must specify the optional default ordinal position of one to be zero. Implements an extended interface to make the control faster than the default implementation.
eg. Dim eboName As IAutoText
Set eboName = cboName.Object
I have borrowed many snippets of code from this site an thought that it was my turn to share one of my gems with the people of vbcoders.com. This ActiveX is being used by many programs and has been thouroughly tested for flaws. My thanks to all the people who have contributed to vbcoders.com.
PS. Vote if you want to.

Assumes
This code requires the ADO 2.1 data objects. (This can be set to other ADO libraries if required.)

Rate AutoText/Combo ActiveX Control

Download AutoText/Combo ActiveX Control

Download AutoText/Combo ActiveX Control (31 KB)

AutoText/Combo ActiveX Control Comments

No comments have been posted about AutoText/Combo ActiveX Control. Why not be the first to post a comment about AutoText/Combo ActiveX Control.

Post your comment

Subject:
Message:
0/1000 characters