Why do you need the actual name of the button?
Please see my toggle button :
Hi, TIMAI2,
Because I want to do something similar to this:
But I need the button name, obviously
Thanks a lot
I think this can shorten your button blocks :
Hi, Salman_Dev,
It's a good idea but, in your example, Button1, Button2, and Button3 are the text attribute of each button, and I need the name of the button.
I can do, as I said before, let the text with no color, but I don't like this way, is not very professional, don't you believe it?
Best regards,
I think it's quite professional but it's all up to you
I think you might be interested in this extension :
I'll see later, Salman_Dev, I'm testing your last code, I'd like to give you an opinion.
Thanks a lot!
Seeing this i interpret that you would like to set the picture to the name of the button,
for that you could try this:
or simply -
This code can also be added in the after click events of respective buttons!
I didnt get you!
It's okay
Uh, oh... it's time to work for me...
Thanks a lot to all of you, I'll tell you the tests results tomorrow.
Happy weekend!
In which case, why not try something like this:
Make a list of lists for each button and corresponding image
In the AnyButtonClicked event, test and then set the image
You also wanted to be able to toggle some buttons, this is how to change the text on each click
you can do the same with button images....
So you did...
I'm so confused, just forget it
Hi, all!
I tested the codes you suggested to me yesterday and they work fine, some of them in one way and the others in other, so I'll do use of them, it's sure. But the best thing, and I am very happy for this, is that I've learned a lot with all of you.
Anyway, after the experience adquired I think the final conclussion about my question is simple: it is not possible to obtain the name of a button dinamically. Right?
Thanks for all and have a very happy Saturday,