473,509 Members | 2,918 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Hide Inputpanel icon... just show keyboard WM5

markmcgookin
648 Recognized Expert Contributor
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 5016
markmcgookin
648 Recognized Expert Contributor
re: last post - http://screencast.com/t/bjbb5sp1b
Jul 18 '08 #2
RedSon
5,000 Recognized Expert Expert
I don't think it can be done in .NET CF..
Jul 18 '08 #3
RedSon
5,000 Recognized Expert Expert
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 Recognized Expert Contributor
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 Recognized Expert Contributor
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 Recognized Expert Expert
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 Recognized Expert Contributor
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
4626
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
2304
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
1176
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
4370
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
6532
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
3325
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
1375
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
1476
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
1997
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
7137
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7416
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7073
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5656
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5062
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4732
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3218
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1571
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
443
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.