Click here to Skip to main content
15,880,543 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hello Sir, I am Vinay From India.

I have a problem in my project user interface that i have created office 2007 like interface.
Every thing is similar to office 2007 without using paint event of any control nor ribbon controls. I have started creating office 2007 controls from scratch but my menu button doesn't able to preserve its pushed state as it is preserved with microsoft office 2007 menu button is pushed, brown colored button is display with the menu items.

Same case is with the tabs of my interface.

how can i do this in c# and gdi please provide me some suggestions or with the code. Thank you
Posted

If you have in fact done as you say without using the paint event of any of the controls, then you have done very well.

Unfortunately I do not know of any way to do what you want without overriding/using the paint event.
 
Share this answer
 
You may need to build another control that simulates this "push" event. You could use some sort of a ToggleButton.
 
Share this answer
 
Without seeing your code, we can't possibly help you beyond stating the obvious - "you're doing something wrong, or not doing something yo should be doing".
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900