473,503 Members | 5,284 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Before SelectedIndexChanged

I need an event that occurs just befor an Index is changed in a combobox,
which is that?
My next question is if there is a good solution to find the order of the
events?

T. I. Rislaa
Nov 20 '05 #1
5 1719
Cor
Hi TI
That you would not find because the index can change because a lot of
reasons.
- binding a dataset
- changing selectedindex in your program
- selecing items in your program
- filling items not using a dataset
- a user who select something

Maybe you can describe the problem

Cor

I need an event that occurs just befor an Index is changed in a combobox,
which is that?
My next question is if there is a good solution to find the order of the
events?

Nov 20 '05 #2
for your second question i would say use all the events and put a messagebox
w the eventname in it, you would get them in order (yea there are other
places you can display the messages 2 but i like messageboxes becouse they
give you time ;p )

for the first one that could be difficult i think it depends on how you have
configured your combobox (simple dropdown, dropdownlist) or if you are doing
things in code that might change the index.
if someone knows a general beforeindex changed event i'm listening 2.
for now you might want to get the index when the combobox gets focus
(gotFocus event) that might do the trick?

hope i have been of some help.

eric
"Tor Inge Rislaa" <to*************@rislaa.no> wrote in message
news:pa******************@news4.e.nsc.no...
I need an event that occurs just befor an Index is changed in a combobox,
which is that?
My next question is if there is a good solution to find the order of the
events?

T. I. Rislaa

Nov 20 '05 #3
* "Tor Inge Rislaa" <to*************@rislaa.no> scripsit:
I need an event that occurs just befor an Index is changed in a combobox,
which is that?
There is no way to do that.
My next question is if there is a good solution to find the order of the
events?


On some pages in the MSDN you will find a description in which order
events are fired, but AFAIK there is no complete description available.

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>

<http://www.plig.net/nnq/nquote.html>
Nov 20 '05 #4
Cor
Hi Herfried,

On some pages in the MSDN you will find a description in which order
events are fired, but AFAIK there is no complete description available.

That is really greath you can for see what keys or/and buttons the user is
pushing.
This is as far as I know only for a very small part of events by instance
the opening, close and focus etc events but those don't as far as I no
trigger the index change and that kind of events.

:-)

As I tried to show to the OP in my message 10 hours ago.

:-)

Cor
Nov 20 '05 #5
* "Cor" <no*@non.com> scripsit:
On some pages in the MSDN you will find a description in which order
events are fired, but AFAIK there is no complete description available.


That is really greath you can for see what keys or/and buttons the user is
pushing.
This is as far as I know only for a very small part of events by instance
the opening, close and focus etc events but those don't as far as I no
trigger the index change and that kind of events.

:-)

As I tried to show to the OP in my message 10 hours ago.


Sorry, I was on Office System Launch Event today, it took some hours to
download all the messages.

;-)

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>

<http://www.plig.net/nnq/nquote.html>
Nov 20 '05 #6

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

Similar topics

0
1843
by: LV | last post by:
Hello, I would like to manually set one of my list view items as selected. When this item is set, I would like for a method to execute. I have a delegate on the list view for SelectedIndexChanged....
0
2457
by: LV | last post by:
Hello, When I manually set a list view item to be a selected item, the SelectedIndexChanged event is not firing. Am I missing something here? using System; using System.Windows.Forms; ...
0
1728
by: tafpin | last post by:
I have an application with a datagrid. In the IDE I have 2 template columns. The first has an image button and the second contains a link button. According to the results that I get back I must...
2
5474
by: rdb | last post by:
VB.NET web program with a webform w/2 dropdownlistboxes, set to AutoPostBack TRUE, selection in either dropdown fires the SelectedIndexChanged events correctly UNTIL I navigate to second webform in...
4
9526
by: Anson | last post by:
Dear all, This questions seems simple to most of you, but I just couldn't figure it out. I have a combobox. I want to capture the value (or index) of the combo box just **before** the user...
2
3010
by: Dave A | last post by:
I am stuggling with databinding a drop down list, hooking into the SelectedIndexChanged and attempting to avoid using the viewstate. The drop down list is quite large so I would prefer to avoid...
1
5121
by: kevin | last post by:
Hi, I'm working with VS 2005 and Framework 2.0 I have a datagrid with a link and the selectedindexchanged will not fire. The page posts back but does nothing. Protected Sub...
3
2615
by: Alec MacLean | last post by:
Hi, I have a couple of win forms where I am editing values that are stored in a SQL database. I'm using the listbox control to hold the data object each form interacts with. Each object is...
2
3279
by: jnoody | last post by:
The problem I am having is with the SelectedIndexChanged event not always firing or the SelectedIndex property not being correct when the event does fire. The code is below, but here are some...
3
2816
by: martin1 | last post by:
Hi, All, I want user select first item (called All) in listbox, then all other items are selected by SetSelected method, but in loop (see code below) whenever going to SetSelected(), the...
0
7194
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7267
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,...
1
6976
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7449
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5566
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,...
0
3148
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1495
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
729
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
372
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.