I made a button in c#, when i click on it in ArcGIS, it changes the background color of layout view. But now i want to make the code for re-clicking the same button and it will change the background color again.
Trying adding a global boolean static property to your button class and leverage it in the onclick event to govern your even/odd click behavior. You could initialize it in the constructor of the class and then toggle its value within your onclick event.