FULL SCREEN APPLICATION

T

tony

Hi,

im developing application in net compact 2.0 on windows mobile 6.1

the application is with few form.
when i move from one form to another, the start menu appears.

how can set that the application forms will run in full screen only, without
any other windows or start menu show, while using it ?


thanking in advance.
 
C

Chris Tacke, MVP

Did you use all of your capital letters in the subject, so you were unable
to use them in the actual question?

Search the archives for "kiosk mode".


--

Chris Tacke, Embedded MVP
OpenNETCF Consulting
Giving back to the embedded community
http://community.OpenNETCF.com
 
T

tony

you are right.
sorry for the headline.

i searched about kiosk mode before posting the question

all i saw was hide the taskbar and setting some properties in the form.
is there any other import things ?

the first try of hideing the task bar with findwindow and
showwindows(hide..) was not successfull..
any line for windows mobile 6.1 sample to do that ?

again,

sorry for the headline.
 
T

tony

O.K, its works now.

I used this code in every -FORM- object cTor :

public frmXXXXXX()

{


InitializeComponent();

////////////////

ControlBox = false;

FormBorderStyle = FormBorderStyle.None;

MinimizeBox = false;

MaximizeBox = false;

this.WindowState = FormWindowState.Maximized;

////////////////

TaskBarHelper.Hide();

//////////////////////////////////////////////////////////////////////////////////////////

and the TaskBarHelper implemantation is :

static class TaskBarHelper

{

const int SW_HIDE = 0;

const int SW_SHOW = 1;

const string cTaskBarClassName = "HHTaskBar";

[DllImport("coredll.dll")]

private static extern IntPtr FindWindow(string lpClassName, string
lpWindowName);

[DllImport("coredll.dll")]

private static extern bool ShowWindow(IntPtr hWnd, int nCmdShow);

[DllImport("coredll.dll")]

private static extern bool EnableWindow(IntPtr hWnd, bool bEnable);

static void _Enable(bool bEnable)

{

IntPtr hWnd = FindWindow(cTaskBarClassName, null);

if (hWnd == IntPtr.Zero)

return;

ShowWindow(hWnd, bEnable ? SW_SHOW : SW_HIDE);

EnableWindow(hWnd, bEnable);

}

public static void Show()

{ _Enable(true); }

public static void Hide()

{ _Enable(false); }

}

//////////////////////////////////////////////////////////////////////////



in some places i called TaskBarHelper.Hide(); before calling
frm.ShowDialog() , not sure if its important,but as long as i dont see this
taskbar, its ok with me.



Thanks for the help.
 
B

Batvanio

O.K, its works now.

I used this code in every -FORM- object cTor :

public frmXXXXXX()

{

InitializeComponent();

////////////////

ControlBox = false;

FormBorderStyle = FormBorderStyle.None;

MinimizeBox = false;

MaximizeBox = false;

this.WindowState = FormWindowState.Maximized;

////////////////

TaskBarHelper.Hide();

///////////////////////////////////////////////////////////////////////////­///////////////

and the TaskBarHelper implemantation is :

static class TaskBarHelper

{

const int SW_HIDE = 0;

const int SW_SHOW = 1;

const string cTaskBarClassName = "HHTaskBar";

[DllImport("coredll.dll")]

private static extern IntPtr FindWindow(string lpClassName, string
lpWindowName);

[DllImport("coredll.dll")]

private static extern bool ShowWindow(IntPtr hWnd, int nCmdShow);

[DllImport("coredll.dll")]

private static extern bool EnableWindow(IntPtr hWnd, bool bEnable);

static void _Enable(bool bEnable)

{

IntPtr hWnd = FindWindow(cTaskBarClassName, null);

if (hWnd == IntPtr.Zero)

return;

ShowWindow(hWnd, bEnable ? SW_SHOW : SW_HIDE);

EnableWindow(hWnd, bEnable);

}

public static void Show()

{ _Enable(true); }

public static void Hide()

{ _Enable(false); }

}

//////////////////////////////////////////////////////////////////////////

in some places i called TaskBarHelper.Hide(); before calling
frm.ShowDialog() , not sure if its important,but as long as i dont see this
taskbar, its ok with me.

Thanks for the help.




you are right.
sorry for the headline.
i searched about kiosk mode before posting the question
all i saw was hide the taskbar and setting some properties in the form.
is there any other import things ?
the first try of hideing the task bar with findwindow and
showwindows(hide..) was not successfull..
any line for windows mobile 6.1 sample to do that ?

sorry for the headline.

- Show quoted text -

Or, you can try to start your application INSTEAD of the standard
WinCE shell ....
 

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