S
SammyBar
Hi all,
Is it any way to refer to toolbar's buttons other than by its index in the
collection?
The reccomended method on the documentation is the following:
switch (tbToolbar.Buttons.IndexOf(e.Button))
{
case 0:
...
break;
case 1:
...
break;
case 2:
...
break;
}
But during development it is very frequent the buttons disappears or the
order of displaying changes, then I should recode the button click handling
to get in sync with the new button order. Is it possible to get the name of
the button to make the switch decision based on it?
Thanks in advance
Sammy
Is it any way to refer to toolbar's buttons other than by its index in the
collection?
The reccomended method on the documentation is the following:
switch (tbToolbar.Buttons.IndexOf(e.Button))
{
case 0:
...
break;
case 1:
...
break;
case 2:
...
break;
}
But during development it is very frequent the buttons disappears or the
order of displaying changes, then I should recode the button click handling
to get in sync with the new button order. Is it possible to get the name of
the button to make the switch decision based on it?
Thanks in advance
Sammy