tags:

views:

362

answers:

2

I want to make the screen fill with my application just like kiosk mode. How can I do it using c#?

i need this for desktop application

A: 

Try http://www.codeproject.com/KB/cs/Kiosk_CS.aspx

jchapa
Looks like a troll down-marked me on this one... His comment was deleted.
jchapa
A: 

get the screen width and height,

it will give the working area dimensions in a rectangle the add size of task bar sample code is here:

Rectangle RectangleScreen = new Rectangle();

RectangleScreen = Screen.PrimaryScreen.WorkingArea;

Size FormSize = new Size(RectangleScreen.Width, RectangleScreen.Height + 35);

this.Size = FormSize;

moon
You're assuming that the task bar is at the bottom of the screen, and also that it's exactly 35 pixels tall. Both are risky guesses.
Michael Petrotta