473,404 Members | 2,137 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

combobox items count event ?

hello

I have a small problem with combobox. i wonder if there is an event
which fires when members of Items collection change?. For example this
event should fire when i add or delete an item, or where i clear the
collection - generally speaking when the Items.Count number is
changed.

VaNTa
vanta(at)wp(dot)pl
Nov 16 '05 #1
3 4686
Hi VaNTa,

I don't think there is anything in the ComboBox that will fire an event when items change. The closest thing might be the DropDown event occuring when you click the DropDown button. You probably should do the code when you add or remove the items.

Happy coding!
Morten Wennevik [C# MVP]
Nov 16 '05 #2
You can allways *try* and derive from combobox, override the add and remove
methods and fire an added event to announce the collection change.
this is just a thought, didnt check if the methods can be overridden.

picho
"VaNTa" <va***@wp.pl> wrote in message
news:77**************************@posting.google.c om...
hello

I have a small problem with combobox. i wonder if there is an event
which fires when members of Items collection change?. For example this
event should fire when i add or delete an item, or where i clear the
collection - generally speaking when the Items.Count number is
changed.

VaNTa
vanta(at)wp(dot)pl

Nov 16 '05 #3
> I don't think there is anything in the ComboBox that will fire an event when items change. The closest thing might be the DropDown event occuring when you click the DropDown button. You probably should do the code when you add or remove the items.

Happy coding!
Morten Wennevik [C# MVP]


i didn't mention that my comboxes are binded to dataset with
master/detail realtionship. so what i exactly want is to get an event
when i change selected index in the first combobox and AFTER
databindings fill the second combobox.

maybe there is an event in binding menager on binding context ?

vanta
Nov 16 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Niels | last post by:
Hello, I'm trying to get te index of a specific text in a ComboBox. The ComboBox is filled by searching for filenames in a directory. The text of the last item selected in the ComboBox is saved in...
0
by: Eva | last post by:
Hello, I have a combobox on my form that will contain a list of items when the combobox is clicked. I have used the following code in the comboBox's click event to add the items: Private...
1
by: jim | last post by:
How do I immediately set the SelectedIndex of a combobox (dropdownlist) upon Form Load? I'm getting out of range errors and I suspect it's due that the Form has not been displayed yet. Please...
2
by: pei_world | last post by:
I want to implement a key hit with enter to dropdown a combobox that is in the datagrid. in this case I need to override its original behaviours. I found some codes from the web. Does anyone know...
5
by: Andy | last post by:
I am having trouble using the ComboBox in my app. I am attempting to use the text from the ComboBox, to search the list box portion. However: In my "TextChanged" event: I cannot get the value...
6
by: Sakharam Phapale | last post by:
Hi All, How to fill one ComboBox from other ComboBox control? 1) Only setting the reference does the trick but doesn't show items in control. If you see in immediate window, it shows...
7
by: samoore33 | last post by:
I am trying to dynamically add items to a listbox or combobox. The items add to either, but when I look through those items, there is nothing there. If I choose an item, it shows up. Not sure...
10
by: Doug Bell | last post by:
Hi I am still having problems with Tabbing through a DataGrid with a DataGridComboBox Column. I need to allow the User to Type the value into the ComboBox so consequently its ComboBoxStyle is...
0
by: lsharva | last post by:
Actually, i m working on Windows Application where i have to use the ComboBox and listview in a way , as first we will click the comboBox and then as you click , ListView appear and when we...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.