FULL SCREEN APPLICATION

  • Thread starter Thread starter tony
  • Start date Start date
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.
 
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
 
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.
 
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.
 
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 ....
 
Back
Top