Hi!

This link says it all:

http://www.techtalkz.com/c-c-sharp/125478-display-jpg-full-screen-mode.html



Benj







On Aug 30, 9:21 pm, "Marko D. Topic" <[email protected]> wrote:
> Hi, I'm creating a windows forms Image Viewer application in C# for my
> college project and I have problems with display of large images. By
> "large" I mean the images that are bigger than the application window
> (it's a SDI application). The layout of the form is like this: on the
> top there is a MenuStrip, and right below a ToolStrip control, on the
> bottom I have a StatusStrip, and in the space between the ToolStrip
> and StatusStrip I draw my images. I added a Paint event handler for
> the form and I use the e.Graphics property of the PaintEventArgs to
> draw the image directly to the form's client area. But I'm starting to
> think this wasn't a good idea because if I have to display images that
> are bigger than the size of the form (640x480), I have to enable the
> AutoScroll, but the scrollable area is the form's whole client area,
> not just the space between the ToolStrip and StatusStrip where I
> display my images, so the scrollbars don't appear where I want them to
> appear. Maybe I should use a panel or pictureBox and set it's Dock =
> Fill property to fill the space between the two strips, enable the
> AutoScroll for the control, and then add a Paint event handler for the
> panel or pictureBox and draw the image there? What do you think would
> be the best solution?

Reply via email to