Click here to Skip to main content
15,887,946 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Morning, evening, afternoon.

I'm working on a control and stumbled upon a little problem.

How can I detect if a draw action will falls outside of the clip area?
For if the DrawString command reaches beyond the Rectangle, I have to shorten it with a "..." at the 'end'.
Posted

1 solution

You don't have to.

Take a look at this[^].
 
Share this answer
 
Comments
Abhishek Sur 25-Sep-10 14:43pm    
Didn't know. Good call.

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