Click here to Skip to main content
16,017,788 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
Part of the button is invisible on another panel.
How can we draw to see whole button on those two panels in c# windows application?
Posted

1 solution

You can't draw a button across two panels: what you draw on a panel stays within the bounds of that panel, and will be clipped outside it.
What you can do is not draw the button on either panel, but on the underlying form. Then either set the z-order (using the "bring to front" and "send to back" buttons in the designer) or with the Control.BringToFront[^] and Control.SendToBack[^] methods at runtime.
 
Share this answer
 
Comments
Htike Htike Aung 20-Nov-10 4:03am    
Thanks for your help.

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