G
Guest
Hi,
I made a procedure which receives a Graphics parameter, and with that Graphics parameter, performs various things. The area of confusion here is that when I pass the procedure a Graphics object created by a Panel, and use the MeasureString() method, I get a different width than when I pass up the procedure a Graphics object created by a PrintDocument.
The procedure is exactly the same, independent of which object called it, so why would the MeasureString width be different? It's not different by a lot, maybe off by 5 or 10, but its still enough to screw up my code...
Yaron
I made a procedure which receives a Graphics parameter, and with that Graphics parameter, performs various things. The area of confusion here is that when I pass the procedure a Graphics object created by a Panel, and use the MeasureString() method, I get a different width than when I pass up the procedure a Graphics object created by a PrintDocument.
The procedure is exactly the same, independent of which object called it, so why would the MeasureString width be different? It's not different by a lot, maybe off by 5 or 10, but its still enough to screw up my code...
Yaron