How to display images full screen

Posted on 2009-05-01
Last Modified: 2013-11-07
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
Question by:PantoffelSlippers
    LVL 9

    Accepted Solution


    this shoudl work

    create a regular 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


    Author Comment

    I'll try ....

    LVL 85

    Expert Comment

    by: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.
    LVL 9

    Expert Comment

    thanks Idle, good point, forgot about that property! the less code the better :=)

    Author Comment

    Thank you experts.

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

    Thanks again

    Author Closing Comment

    Thank you

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
    Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now