Quantcast
Channel: VBForums - CodeBank - Visual Basic 6 and earlier
Viewing all articles
Browse latest Browse all 1448

Tokenized Text Box control - A text box that contains tokens, and autosuggestion.

$
0
0
Hello, guys. Here is a control that implements a Tokenized Text Box.

It's a gloryfied textbox, which can remember about a dozen tokens (each token having it's own text and numeric ID).
The textbox also has autocomplete / suggestion listbox. It also has cue banners.

The suggestions and suggestion ID's are strings that are defined as properties of the usercontrol. The usercontrol treats them as arrays (the separator can also be defined).
The suggestion and suggestion ID's should have an equal number of items.

Suggestion list is displayed after a certain amount of ms and after typing a certain amount of characters (this is defineable).
Also suggestions can be called programatically (ie not autsuggestions) - in case the suggestion list must be dependand on the characters the used types.

There is a handy .Suggest() function added.

I left the CTL uncompiled (so you can modify it to your heart's content and make an OCX out of it).
Demo project included!

Currently the user interface does not look too sexy - but it supports themes. In case comeone wants to improve the UI, the help would be really appreciated.

Have fun !

Name:  ~Screenshot1.jpg
Views: 78
Size:  23.3 KBName:  ~Screenshot2.jpg
Views: 68
Size:  25.0 KBName:  ~Screenshot3.jpg
Views: 66
Size:  24.0 KBName:  ~Screenshot4.jpg
Views: 66
Size:  24.1 KB


Tokenized Text Box Control.zip
Attached Images
    
Attached Files

Viewing all articles
Browse latest Browse all 1448

Trending Articles