Windows Develop Bookmark and Share   
 index > Windows Forms General > Fit View
 

Fit View

how to display the whole diagram in fit view position.
Regards,
Algates
algates
algates  Tuesday, February 24, 2009 12:35 PM
I assume you draw in paint event, than you can use e.Graphics.ScaleTransform( , ) to size the drawing.
But you need to know how big your image is to know how much it should be scaled.
boothwine  Tuesday, February 24, 2009 1:15 PM
I assume you draw in paint event, than you can use e.Graphics.ScaleTransform( , ) to size the drawing.
But you need to know how big your image is to know how much it should be scaled.
boothwine  Tuesday, February 24, 2009 1:15 PM

You can use google to search for other answers

Custom Search

More Threads

• Winsock control
• Memory not freed when disposing form. (Was: Memory.... )
• Does "DataGridView.HitTestInfo" have a "DataGrid.HitTestType.RowResize"?
• App.config change and Screen position
• Make Tab show entire row when tabbing through controls in a autoscrolling TableLayoutPanel
• digital signatures
• drawstring problem
• Displaying Error Provider
• TextBox Help
• NotifyIcon ShowBalloonTip renders balloon tip in 2 different styles in Vista