Maybe you ca use the KeyPress event in the Combobox and in the event procedure
check if the use had pressed the Enter key to valid the new Item to enter in 
your list ?

Did I'm in the right way of what you want to do.

After, to add new Item in the list, just use: 

       ComboBox1.List.Add("New Item", 0)   <--- 0 to put it at the beginning of 
the list

       ComboBox1.List.Add("New Item")       <--- Nothing to put it at the end 
of the list



Olivier Cruilles
Mail: [email protected]

Le 10 avr. 2011 à 10:12, Bill-Lancaster a écrit :

> 
> 
> No problem,
> 
> 1) A form is opened with a combobox on it
> 2) The combobox is filled with a list on form_open
> 3) The user can't see what he wants in the list so I want him to be able to
> add a new item
> 
> As I mention above, using the activate event works on the main form but not
> in a sub form.
> 
> Whats more, I created another subform but this time not checking "Dialogbox
> management" and the activate event fires properly
> 
> Bill Lancaster
> -- 
> View this message in context: 
> http://old.nabble.com/Adding-%22not-in-list%22-item-to-a-combobox-tp31362490p31362684.html
> Sent from the gambas-user mailing list archive at Nabble.com.
> 
> 
> ------------------------------------------------------------------------------
> Xperia(TM) PLAY
> It's a major breakthrough. An authentic gaming
> smartphone on the nation's most reliable network.
> And it wants your games.
> http://p.sf.net/sfu/verizon-sfdev
> _______________________________________________
> Gambas-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/gambas-user
> 



------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
Gambas-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to