469,270 Members | 1,063 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,270 developers. It's quick & easy.

Hide Inputpanel icon... just show keyboard WM5

markmcgookin
648 Expert 512MB
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.

Expand|Select|Wrap|Line Numbers
  1. 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 :(
Jul 17 '08 #1
7 4940
markmcgookin
648 Expert 512MB
re: last post - http://screencast.com/t/bjbb5sp1b
Jul 18 '08 #2
RedSon
5,000 Expert 4TB
I don't think it can be done in .NET CF..
Jul 18 '08 #3
RedSon
5,000 Expert 4TB
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
Jul 18 '08 #4
markmcgookin
648 Expert 512MB
Nope it can't but you can do it with p/invoke...

http://forums.microsoft.com/msdn/Sho...76586&SiteID=1
Ah RedSon.... yee of little faith. I have done it.

Expand|Select|Wrap|Line Numbers
  1. [DllImport("coredll.dll")]
  2.         public static extern bool MoveWindow(IntPtr hwndRequestor, int x, int y, int nwidth, int nHeight, Boolean brepoint);
  3.  
  4.         [DllImport("coredll.dll")]
  5.         public static extern IntPtr FindWindow(string lpClassName, string lpWindowName);
  6.  
  7.  
  8.         private void button1_Click(object sender, EventArgs e)
  9.         {
  10.             this.inputPanel1.Enabled = true;
  11.             IntPtr h = FindWindow("SipWndClass", null);
  12.  
  13.             //MoveWindow(h, 0, 172, this.Width, 148, false);
  14.             MoveWindow(h, 0, 240, this.Width, 80, false);
  15.         }
  16.  
  17.         private void button2_Click(object sender, EventArgs e)
  18.         {
  19.             this.inputPanel1.Enabled = false;
  20.         }
  21.  
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
Jul 18 '08 #5
markmcgookin
648 Expert 512MB
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
Jul 21 '08 #6
RedSon
5,000 Expert 4TB
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.
Jul 21 '08 #7
markmcgookin
648 Expert 512MB
Heh, its alright. I knew that soon you will understand the ways of the Jedi young padawan.
There is no try.....
Jul 22 '08 #8

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

10 posts views Thread by oLE | last post: by
4 posts views Thread by Blaine | last post: by
4 posts views Thread by randy1200 | last post: by
3 posts views Thread by Raj Wall | last post: by
2 posts views Thread by Mel | last post: by
1 post views Thread by traewathen | last post: by
2 posts views Thread by jp2group | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.