Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to display full screen image.

Status
Not open for further replies.

SashaFromRussia

Technical User
Apr 26, 2003
3
US
In my VB application I need to display full screen images, one at the time. Only image should be visible, nothing else.
Is this possible? How to do that?
Unfortunately, I'm not a programmer. A short sample will help me a lot.
Thanks in advance.

Sasha

Please reply to shkolns@attbi.com
 

In the properties window of the form set controlbox to false and remove the caption of the form and then in the forms code window place the following code inside
[tt]
Option Explicit

Private Sub Form_Load()

Me.Left = 0
Me.Top = 0
Me.Width = Screen.Width
Me.Height = Screen.Height

End Sub
[/tt]

Ok, now that will make the form take up the entire screen including overlapping the windows start bar.

Now you can use the loadpicture function to load the picture directly to the form but if the picture is not as large as the form then you will be able to see the bottom and/or left of the form behind the picture. You can get around this by using an image control with its stretch property set to true but then you may get some undisirible effect of stretching a narrow image.

Good Luck

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top