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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

vb like combo box

Status
Not open for further replies.

discusmania

IS-IT--Management
Oct 24, 2000
158
AP
hi guys.....
do you know how to get a combobox that acts like visual basic combobox? you know,you can add new item if what you type is not in the list. does anyone have idea?.
thanks
Ron
 
VB comboboxes doesn't add the entry automatically.

As for your question, the only thing I can think of is to use the control itself.

The following code put the control on my form. Hope it helps.

Code:
<OBJECT classid=clsid:8BD21D30-EC42-11CE-9E0D-00AA006002F3 id=MdcCombo1 
style=&quot;HEIGHT: 24px; WIDTH: 228px&quot; VIEWASTEXT>
<PARAM NAME=&quot;VariousPropertyBits&quot; VALUE=&quot;746604571&quot;>
<PARAM NAME=&quot;BackColor&quot; VALUE=&quot;2147483653&quot;>
<PARAM NAME=&quot;ForeColor&quot; VALUE=&quot;2147483656&quot;>
<PARAM NAME=&quot;MaxLength&quot; VALUE=&quot;0&quot;>
<PARAM NAME=&quot;BorderStyle&quot; VALUE=&quot;0&quot;>
<PARAM NAME=&quot;ScrollBars&quot; VALUE=&quot;0&quot;>
<PARAM NAME=&quot;DisplayStyle&quot; VALUE=&quot;3&quot;>
<PARAM NAME=&quot;MousePointer&quot; VALUE=&quot;0&quot;>
<PARAM NAME=&quot;Size&quot; VALUE=&quot;6032;635&quot;>
<PARAM NAME=&quot;PasswordChar&quot; VALUE=&quot;0&quot;>
<PARAM NAME=&quot;ListWidth&quot; VALUE=&quot;0&quot;>
<PARAM NAME=&quot;BoundColumn&quot; VALUE=&quot;1&quot;>
<PARAM NAME=&quot;TextColumn&quot; VALUE=&quot;65535&quot;>
<PARAM NAME=&quot;ColumnCount&quot; VALUE=&quot;1&quot;>
<PARAM NAME=&quot;ListRows&quot; VALUE=&quot;8&quot;>
<PARAM NAME=&quot;cColumnInfo&quot; VALUE=&quot;0&quot;>
<PARAM NAME=&quot;MatchEntry&quot; VALUE=&quot;1&quot;>
<PARAM NAME=&quot;ListStyle&quot; VALUE=&quot;0&quot;>
<PARAM NAME=&quot;ShowDropButtonWhen&quot; VALUE=&quot;2&quot;>
<PARAM NAME=&quot;ShowListWhen&quot; VALUE=&quot;1&quot;>
<PARAM NAME=&quot;DropButtonStyle&quot; VALUE=&quot;1&quot;>
<PARAM NAME=&quot;MultiSelect&quot; VALUE=&quot;0&quot;>
<PARAM NAME=&quot;Value&quot; VALUE=&quot;&quot;>
<PARAM NAME=&quot;Caption&quot; VALUE=&quot;&quot;>
<PARAM NAME=&quot;PicturePosition&quot; VALUE=&quot;458753&quot;>
<PARAM NAME=&quot;BorderColor&quot; VALUE=&quot;2147483654&quot;>
<PARAM NAME=&quot;SpecialEffect&quot; VALUE=&quot;2&quot;>
<PARAM NAME=&quot;Accelerator&quot; VALUE=&quot;0&quot;>
<PARAM NAME=&quot;GroupName&quot; VALUE=&quot;&quot;>
<PARAM NAME=&quot;FontName&quot; VALUE=&quot;Times New Roman&quot;>
<PARAM NAME=&quot;FontEffects&quot; VALUE=&quot;1073741824&quot;>
<PARAM NAME=&quot;FontHeight&quot; VALUE=&quot;240&quot;>
<PARAM NAME=&quot;FontOffset&quot; VALUE=&quot;0&quot;>
<PARAM NAME=&quot;FontCharSet&quot; VALUE=&quot;0&quot;>
<PARAM NAME=&quot;FontPitchAndFamily&quot; VALUE=&quot;2&quot;>
<PARAM NAME=&quot;ParagraphAlign&quot; VALUE=&quot;1&quot;>
<PARAM NAME=&quot;FontWeight&quot; VALUE=&quot;400&quot;>
</OBJECT>

This was generated automatically, so don't ask me what they all mean. I just know that the params are all the properties. _________________
Bixarrio

e = m * (c ^ 2)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top