473,394 Members | 1,706 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

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 5009
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

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

Similar topics

10
by: oLE | last post by:
I would like to add some javascript to show/hide a certain row of a table. The first row of the table contain the hyperlink that calls the javascript the second row is the one i want to show/hide...
2
by: Flo | last post by:
Hello I want to be able to show/hide an application that is running. When i am getting the handles corresponding to an MS Office application (Excel for example), it appears that i get a handle...
2
by: AAA | last post by:
Hi, when I mininize my application, the botton panel will always show the inputpanel of my application. How can I make that inputpanel disapper when I mininize my application or when I am in the...
4
by: Blaine | last post by:
Does anyone know how I can hide a form from the TaskManager? I've set the ShowInTaskbar to False, but when using Alt-TAB to switch between applications, it appears as a blank icon. I can set it...
4
by: randy1200 | last post by:
I have a Windows application that previously had the company logo "MyCompany.ico" added to the upper left-most corner. The company has since issued a new version of "MyCompany.ico" that looks...
3
by: Raj Wall | last post by:
Hi, I have an application which, when running, is to be seen only in the system tray as a right-clickable icon. However I want the main Form window itself to immediately disappear without...
2
by: Mel | last post by:
I have a table with two TDs (LHS & RHS), each TD contains a frame full of stuff. on one of the frames (RHS) I have an icon with onClick attached to show/hide LHS. My code goes like this: ...
1
by: traewathen | last post by:
Hello all i am rather new to the whole c # and .net language. my question is in regards to the c# portion of the matter. this is my code block which i have for hiding and unhiding:: ...
2
by: jp2group | last post by:
I have a Main Form that hides in the Task Bar Tray as an Icon until one of the Tray Icon's Menu Items is selected. (think of your antivirus program running there) The program starts up fine and...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.