Help | Site Map
Connecting Tech Pros Worldwide
Reply
 
LinkBack Thread Tools
  #1  
Old July 18th, 2008, 12:54 AM
markmcgookin's Avatar
Moderator
 
Join Date: Dec 2006
Location: Northern Ireland / England
Age: 24
Posts: 489
Default 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.

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 :(
Reply
  #2  
Old July 18th, 2008, 09:14 AM
markmcgookin's Avatar
Moderator
 
Join Date: Dec 2006
Location: Northern Ireland / England
Age: 24
Posts: 489
Default

re: last post - http://screencast.com/t/bjbb5sp1b
Reply
  #3  
Old July 18th, 2008, 03:32 PM
RedSon's Avatar
Site Moderator
 
Join Date: Jan 2007
Location: America
Posts: 3,072
Default

I don't think it can be done in .NET CF..
Reply
  #4  
Old July 18th, 2008, 03:38 PM
RedSon's Avatar
Site Moderator
 
Join Date: Jan 2007
Location: America
Posts: 3,072
Default

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
Reply
  #5  
Old July 18th, 2008, 04:44 PM
markmcgookin's Avatar
Moderator
 
Join Date: Dec 2006
Location: Northern Ireland / England
Age: 24
Posts: 489
Default

Quote:
Originally Posted by RedSon
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
Reply
  #6  
Old July 21st, 2008, 09:11 AM
markmcgookin's Avatar
Moderator
 
Join Date: Dec 2006
Location: Northern Ireland / England
Age: 24
Posts: 489
Default

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
Reply
  #7  
Old July 21st, 2008, 04:02 PM
RedSon's Avatar
Site Moderator
 
Join Date: Jan 2007
Location: America
Posts: 3,072
Default

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.
Reply
  #8  
Old July 22nd, 2008, 09:30 AM
markmcgookin's Avatar
Moderator
 
Join Date: Dec 2006
Location: Northern Ireland / England
Age: 24
Posts: 489
Default

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.....
Reply
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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.
Post your question now . . .
It's fast and it's free

Popular Articles