Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

drop list box like in interdev and visual studio

Status
Not open for further replies.

ixian

Programmer
Jul 13, 2001
128
US
Hey all,

i was wondering how to make a drop list box like in the interdev and visual studio products?

Aaron
 
like when you start typing a function and a listing popup and help you to finish the coding
 
You mean the IntelliSense dropdown list (or autolist members dropdown list)
You have to use enum for possible property value.
It goes something like this:

Public Enum MyEnum
left = 0
right = 1
down = 2
up = 3
End Enum

when you difine a property you use the enum as a value like so:

public property let Myprop(new_Myprop as MyEnum)

setting the property Myprop (like mycontrol.Myprop = ...) the dropdown list will appear where the ... are.

You can either set the property to 0,1,2,3 or left,right,down,up using another value like 4 or OhImDrunk will not cause an error when going to the next line soo be aware for errors in the property set.

 
I never used it and when I checked it filling out left or 0 will give the value 0 to new_Myprop.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top