How to run Windows Mobile application in full screen mode? - c#

I have a Windows Mobile application developed with Visual Studio 2010 and C# (Smart Device Project). When I run the application there's a start menu bar visible on the top and keyboard bar on the bottom. How can I make my application run in full-screen mode?
If possible I would like to have a solution that will allow me to turn full-screen mode on and off on runtime (after clicking some form button for example).

(Assuming the question is about Windows Mobile and not Windows Phone.)
On Windows Mobile if you want to hide parts of Windows that normally can't be hidden, you have to hide them with P/Invoke. There are plenty of questions like this already answered and some other resources too. And of course you can call the P/Invoke from an event handler.

Related

Show (restore window) app instead open other instance in Windows Forms

I have an app in Windows Forms, written in C# (.Net 4.7.2) that, when minimized, goes to the system tray.
The requirement is that when the user clicks on the desktop shortcut again, if the application is already running hidden in the tray, the screen should be restored instead of opening a new instance of the same application.
I know that this behavior is common in several applications, but I still haven't found a way to do this in Windows Forms.
Thanks in advance!

How to open TabTip keyboard in a UWP app in desktop mode on button click

I am currently working in a UWP application. I have a situation where I need to open the taptip keyboard. The device needs to be in desktop mode and the keyboard should open on a button click. Is there any way I can achieve this functionality?
I know it works fine in tablet mode when a text box gets focus but I need to get it done in desktop mode and on a button click.
I know it can be done from a console application using System.Diagnostics.Process but I need a way around for uwp app.
The user can enable the tip to show when a text box gets focus in a desktop app by setting the "Show the touch keyboard when not in tablet mode and there's no keyboard attached". Apps should generally defer to the user's preferences on this rather than trying to override this themselves.
That said, you can show and hide the InputPane via the InputPane.TryShow and InputPane.TryHide methods.
You'll do essentially the same from a desktop app via the IInputPaneInterop and IInputPane2 interfaces. Launching tabtip.exe explicitly is limited and not generally recommended.

How to stop windows keyboard icon from showing

i have an app that is intended for a pc with a touchscreen display. I have a built in keyboard for the app. Every time i click a textBox windows displays the icon for me to open windows keyboard. How do i disable that from poping up in my app, BUT still let it pop up outside my app?
More info:
I have a kiosk style app, for employees to register gas consumption. and is all made for a tactil screen. When i click either a textBox or a comboBox the icon prompting me to open windows keyboard pops up. I want to stop that from happening since the app already has a keyboard. However, employees can still get access to regular windows, so when they do i want this pop up to happen naturally on the rest of the computer. So, i just want to stop this from happening in my app, and all the solutions i have came across are for windows in generally and not app specific. How to stop this icon from poping up in my app?

Pin WPF window on the desktop in Windows 7

I want to pin a WPF window on the desktop (it should be a desktop gadget).
I know you can do this by setting the parent handle of the WPF window to the handle of the "progman" window.
But this does not prevent the hiding of the WPF window when "Windows + D" is pressed.
There must be another way do to this. The new desktop gadgets in Windows 7 are not hidden when "Windows + D" is pressed. How did the MS developers achieve this?
I think your best bet would be to create a Gadget and host your WPF using either of the following options
1- WPF hosted using an IFrame.
WPF Vista Gadgets - Part 1: Using XBAP and IFRAME
2- WPF hosted in the Gadget using ActiveX
http://blogs.msdn.com/karstenj/archive/2006/10/09/activex-wpf-gadget.aspx
http://blogs.msdn.com/jaimer/archive/2006/10/02/writing-a-.net-activex-control-for-your-sidebar-gadget_2E002E00_.aspx
The linked articles are for Vista but the concepts should be the same since Windows 7 gadgets are backwards compatible with Vista gadgets.
Try this
Create a XBAP Application in VS.
Follow the standard pattern of a Window Gadget.
Call the XBAP app exe from java script in the web page.
Finally zip your directory structure and change its extension to .gadget
your wpf gadget is ready to deploy

windows7 set the "show icon and notification" programmatically

I want my application (written in c#) which needs to run on Windows 7 and show an icon in the notification area. The default is "only show notification" I my icon to be shown by default. looking for the api in c# or to wite a script for this.
If there's no direct way to do this is there any overriding way?
I believe it is by design the Windows 7 doesnt let you do this programmatically.
Could you not do something on the main TaskBar using the Windows API Code Pack?

Categories

Resources