Drawing an Image at Full Screen

R

RP

I want to draw an image at full screen (use the full 320x240 screen
dimensions).
Ideally, I'd like to be able to show the image such that my
application's form remains focused --
eg. Display the image within a control within my form; have a 'Go
FullScreen' menu option which then would paint the image at full
screen; and then if the user presses one of the menu keys, the image
go back to 'windowed' mode and the menu action takes place as if it
were in 'windowed' mode.

So step one is drawing the image at full screen. Is there any way for
a control to draw itself outside of its bounds? How does the media
player control go into full screen?
 
F

Fabien

Hi,

You have to hide the taskbar:
int h = FindWindow("HHTaskBar", "");
ShowWindow(h, SW_HIDE);

[DllImport("coredll.dll", CharSet=CharSet.Auto)]
public static extern int FindWindow(string lpClassName, string
lpWindowName);
[DllImport("coredll.dll", CharSet=CharSet.Auto)]
public static extern bool ShowWindow(int hwnd, int nCmdShow);

public const int SW_HIDE = 0x0000;
public const int SW_SHOW = 0x0001;

and set the following properties to your Form:
http://fabdecret.blogspot.com/2007/05/non-full-screen-window.html

BR

Fabien Decret (Device Application Development MVP)
Windows Embedded Consultant

ADENEO (ADESET)
http://www.adeneo.adetelgroup.com/ | http://fabdecret.blogspot.com/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top