In fact this is really an issue about the Active event not firing in
circumstances so I'll raise it as issue separately.
Thanks for all your comments
Bill Lancaster
--
View this message in context:
http://old.nabble.com/Adding-%22not-in-list%22-item-to-a-combobox-tp31362490p31363072.html
Sent
Maybe, your problem is that you don't now how to acces to the ComboBox property
from the sub Form ?
If it that, you can create property in your main form to acces to to ComboBox
like that
PROPERTY AddItem as string
PRIVATE SUB AddItem_Write(Value as String)
IF ComboBox1.Find(Value)
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
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 mo
Hi,
Can you give more details about what you wan to do because this is a little
confused ?
Olivier Cruilles
Mail: linu...@club-internet.fr
Le 10 avr. 2011 à 09:16, Bill-Lancaster a écrit :
>
>
> Continued...
> Using the "Activate" property does the job in the main form.
> When the combobox
Continued...
Using the "Activate" property does the job in the main form.
When the combobox is in a sub form the Activate event doesn't fire.
The sub form is called using fEditInfo.Show i.e. not modal
Gambas 2.21, Ubuntu 10.10
Bill Lancaster
--
View this message in context:
http://old.nabb
I have a combobox that is filled when the form is opened.
How can the user add an item to the list?
--
View this message in context:
http://old.nabble.com/Adding-%22not-in-list%22-item-to-a-combobox-tp31362490p31362490.html
Sent from the gambas-user mailing list archive at Nabble.com.