• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2555
  • Last Modified:

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
0
PantoffelSlippers
Asked:
PantoffelSlippers
  • 3
  • 2
1 Solution
 
CyberLexCommented:
Cheers

this shoudl work

create a regular vb.net windows form application.

set the form properties to:

FormBorderStyle = None
TopMost = True
WindowState = Maximised

then put a picture box on the form and chatch the windows resize event to resize the picturebox to fullscreen when you start your form.

Private Sub Form1_Resize(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Resize

        PictureBox1.Size = New Point(Me.Width, Me.Height)

End Sub

cheers
CyberLex
0
 
PantoffelSlippersAuthor Commented:
I'll try ....

Thanks
0
 
Mike TomlinsonMiddle School Assistant TeacherCommented:
*** 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.
0
Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

 
CyberLexCommented:
thanks Idle, good point, forgot about that property! the less code the better :=)
0
 
PantoffelSlippersAuthor Commented:
Thank you experts.

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

Thanks again
0
 
PantoffelSlippersAuthor Commented:
Thank you
0

Featured Post

[Webinar On Demand] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now