Disable Setting button on android keyboard - c#

I want to disable these buttons on my android keyboard tablet :
Because, if the user press these buttons, they can quit my application, and normally, they can't
I develop with Visual Studio 2015 Xamarin in MVVMCross
How can i do that ?
Thank you

You can't disable these buttons as far as I know. And even if you could, a user can always install other keyboards that you don't have control over.
Modifier keys are not triggering the EditorAction event of an EditText control, so those won't help you (only for Done and Del, for example). The OnKeyUp or OnKeyDown event won't help you either.
One solution could be to implement a keyboard like banking apps often do, however that would be a hassle for a complete keyboard (most banking apps only show digits for a PIN-code). It depends on the specific use case and context of your app if this would work for you.
But really think about why you would want to prevent the user from quitting the app. If it is needed for an enterprise or school, there are solutions with Mobile Device Management that should work. An app for taking exams for example, would require this.

Related

How to register a Windows sound event?

In Windows Control Panel there is a tool that allows us to control system sounds. Visual Studio supports this by providing several "Program Events" which allow you to associate a specific sound with them.
I have a console app that I would like to support these sounds configured from Control Panel. They are for several long running events in my app and usually I leave it running in the background, but I have to check that a certain operation was done before I can continue using it.
I know about Console.Beep(), but it doesn't suit my needs. Any suggestions on what to research? I tried looking for "C# program events" (like they are labeled in the Sound Control Panel), but obviously that gives me results about the C# event keyword.

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.

What is the Windows event for showing the desktop?

I want to have some code run when the user tells Windows to show the desktop, such as when the user presses Win+D. I am having issues finding what that event is. I tried using spy++, but couldn't find what I was looking for, and the documentation for things like this seem poor or nonexistent.
Specifically what I want to do is avoid hiding the window because I'm making a desktop overlay program, and having this as the desktop is precisely the purpose of the program. If there is an alternative to handling the Windows event to accomplish this, I would be fine with that. I saw This answer, but unfortunately it doesn't work on Windows 10, which I need to support, along with 7 and 8.

WinRT Xaml Numeric Keyboard doesn't popup

I have an universal app and in my app I am using
InputScope="Number"
for many of my textboxes. And in phone application all working, but in windows tablet app when I use it in emulator it opens numberic keyboard (however I am still able to navigate to alphabetical keyboard but this is not an issue).
Issue is with actual tablet. When I use my application in tablet it opens alphabetical keyboard then I have to navigate to numeric keyboard.
What I have tried so far
changed InputScope to Telephone.
Tried in code for changing input scope.
Have you tried the NumberFullWidth ?
Please go to : https://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.xaml.input.inputscopenamevalue for more types that you can use ..
UPDATE :
Have you tried another tablet !!

How can I know which feature is clicked in a Windows Mobile application?

How can I know which feature (menu items, buttons, etc.) is clicked in a Windows Mobile application?
I need to create an app which listens to user clicks globally, much like what windows global hooks does and I need to know which part/control of every application the user clicked on.
TIA!
Thw Windows CE OS itself doesn't support mouse hooks at all. It supports keyboard hooks (unofficially, but it's been there since 1.0). The only way to get all mouse events is to write a custom touchpanel driver and that is no small feat, especially when you have no information about the hardware. Maybe if you give us a better idea why you need this ability, we can offer alternatives.

Categories

Resources