Alright anyone notice that in VB when you type say text1. it creates a list of properties you can choose(you better had :))? How can I mimic that? Api maybe?
Printable View
Alright anyone notice that in VB when you type say text1. it creates a list of properties you can choose(you better had :))? How can I mimic that? Api maybe?
Are you making an active X control (OCX?) and want to display it or do you want to display it in your program for the users?
If memory serves, that's what's called an enumeration. Karl Moore has done a little writeup of this in his Article: ActiveX Control Tutorial. Here is the exact page he describes how to set up an enumeration:
http://www.vb-world.net/articles/controls2/index3.html
And here is the enumeration:
Check out his articles, you'll get a lot out of them (I did).Code:Public Enum CharacterType
All
Numbers
Letters
End Enum
I just want to add that list to my projects, control or otherwise
I meant I want to mimic the drop down box that lets you select the properties in VB code editor
I guess I'm still confused.
Do you mean you want to write something that will allow a person who's using an IDE that you've developed to see this? Like in a textbox or richtextbox? Or do you want to set up your own modules/classes/activex controls that do this?
Okay you know how vb will make that dialog to fill in the properties? The little drop down list when you type object names? I just want to do something like that