No, there is no such event.
But you could store the current Index. When the SelectedIndexChanged event
is fired you still know the old index because you saved it before. You can
then do your processing with the old index, store the new Index and go on.
hth

Signature
Claudio Grazioli
http://www.grazioli.ch
http://www.grazioli.ch/HommingbergerGepardenforelle/
Thanks Claudio,
Let's say SelectedIndexChanged is fired and if some condition is not met you
don't want to change the tabpage and want to go back to the old one. So you
need to set the SelectedIndex to the old index in which case the
SelectedIndexChanged is fired again and I don't have a neat solution to get
around that event being fired the second time.
> No, there is no such event.
>
[quoted text clipped - 3 lines]
>
> hth
Claudio Grazioli - 19 Apr 2005 17:46 GMT
> Thanks Claudio,
>
[quoted text clipped - 3 lines]
> SelectedIndexChanged is fired again and I don't have a neat solution to get
> around that event being fired the second time.
ok. that's not an easy one. at least I don't have a solution.
Some thoughts:
- Why do you let the user select an other tabpage at
all when this certain conditions are not?
I don't know what the conditions are, but I assume it
has to do with valid values in the controls of the
current TabPage. If so, if you use something like
validation, the user could not select another TabPage
as long as there are invalid values on the current
TabPage.
You could also hide the other TabPages as long as
not all values are valid.
just ideas...
Cheers

Signature
Claudio Grazioli
http://www.grazioli.ch
http://www.grazioli.ch/HommingbergerGepardenforelle/