 | 
July 18th, 2008, 12:54 AM
|  | Moderator | | Join Date: Dec 2006 Location: Northern Ireland / England Age: 24
Posts: 489
| | Hide Inputpanel icon... just show keyboard WM5
being an expert here I hope this stumping me won't dissuade any of you from helping me out.....
I am trying to launch an input panel i.e. - this.inputPanel1.Enabled = true;
easy.... but as its WM5 it shows the keyboard and the horrid keyboard icon in the middle below it (I have the menu bar disabled)
Is there a simple way to just show the keyboard without showing this... I must have just missed it if there is... as it's 1.00am here and i've been up since 6.00am :(
| 
July 18th, 2008, 09:14 AM
|  | Moderator | | Join Date: Dec 2006 Location: Northern Ireland / England Age: 24
Posts: 489
| | | 
July 18th, 2008, 03:32 PM
|  | Site Moderator | | Join Date: Jan 2007 Location: America
Posts: 3,072
| |
I don't think it can be done in .NET CF..
| 
July 18th, 2008, 03:38 PM
|  | Site Moderator | | Join Date: Jan 2007 Location: America
Posts: 3,072
| | Quote: |
Originally Posted by RedSon I don't think it can be done in .NET CF.. | Nope it can't but you can do it with p/invoke... http://forums.microsoft.com/msdn/Sho...76586&SiteID=1 | 
July 18th, 2008, 04:44 PM
|  | Moderator | | Join Date: Dec 2006 Location: Northern Ireland / England Age: 24
Posts: 489
| | Quote: |
Originally Posted by RedSon | Ah RedSon.... yee of little faith. I have done it. -
[DllImport("coredll.dll")]
-
public static extern bool MoveWindow(IntPtr hwndRequestor, int x, int y, int nwidth, int nHeight, Boolean brepoint);
-
-
[DllImport("coredll.dll")]
-
public static extern IntPtr FindWindow(string lpClassName, string lpWindowName);
-
-
-
private void button1_Click(object sender, EventArgs e)
-
{
-
this.inputPanel1.Enabled = true;
-
IntPtr h = FindWindow("SipWndClass", null);
-
-
//MoveWindow(h, 0, 172, this.Width, 148, false);
-
MoveWindow(h, 0, 240, this.Width, 80, false);
-
}
-
-
private void button2_Click(object sender, EventArgs e)
-
{
-
this.inputPanel1.Enabled = false;
-
}
-
Took me all day, as I know NOTHING about all this DllImport("coredll.dll") business and dont understand hptrs, but I have got it working and it is 100% FACT :P
I have had help from some other sources http://forums.microsoft.com/MSDN/Sho...95762&SiteID=1 based on a vb project
| 
July 21st, 2008, 09:11 AM
|  | Moderator | | Join Date: Dec 2006 Location: Northern Ireland / England Age: 24
Posts: 489
| |
Just re-read your post... didn't realise you'd offered a solution mate, hence the "ye of little faith comment!"
Must start paying more attention! hehe
| 
July 21st, 2008, 04:02 PM
|  | Site Moderator | | Join Date: Jan 2007 Location: America
Posts: 3,072
| | Quote: |
Originally Posted by markmcgookin Just re-read your post... didn't realise you'd offered a solution mate, hence the "ye of little faith comment!"
Must start paying more attention! hehe | Heh, its alright. I knew that soon you will understand the ways of the Jedi young padawan.
| 
July 22nd, 2008, 09:30 AM
|  | Moderator | | Join Date: Dec 2006 Location: Northern Ireland / England Age: 24
Posts: 489
| | Quote: |
Originally Posted by RedSon Heh, its alright. I knew that soon you will understand the ways of the Jedi young padawan. | There is no try.....
|  |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | | | | What is Bytes?
We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights.
Get the best answers to your questions from over network members.
|