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 -