Link to home
Start Free TrialLog in
Avatar of PantoffelSlippers
PantoffelSlippersFlag for South Africa

asked on

How to display images full screen

Hi experts,

I would like to compile a .Net application that displays images (JPG) from a specified folder.  The would like these images to be displayed full screen:
-- No part of the windows explorer must be visible.  Not even the start menu etc
-- All images must fill the screen regardless of their original size.

I was thinking maybe an HTA application would work best?  I'm not sure.  Maybe a normal desktop application?  

It has to run on windows XP SP2 and .Net Framework version 2.0

Please assist
ASKER CERTIFIED SOLUTION
Avatar of CyberLex
CyberLex
Flag of Switzerland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of PantoffelSlippers

ASKER

I'll try ....

Thanks
Avatar of Mike Tomlinson
*** NOT FOR POINTS ***  (CyberLex has this pretty well covered)

I would just add that you can set the Dock() Property of the PictureBox to Fill (the large center button when changing this property in the IDE) to make it cover the entire Form...then you don't need any code.  Also, set the SizeMode() property of the PictureBox to either (1) StretchImage - this will fill the entire screen but distort the image, or (2) Zoom - this will fill the entire screen but preserve the Aspect ratio (no distortion)...the BackColor of the PictureBox will determine the "margin" color.
thanks Idle, good point, forgot about that property! the less code the better :=)
Thank you experts.

I did get the DOCK earlier.  The strech property was exactly what I was looking for.

Thanks again
Thank you