Keyboard shortcuts don't work in Windows 8 - c#

I have a winform application written in C# that was developed under Windows 7. Many of the menu commands have keyboard shortcuts which are defined in the control properties When I run this application on a Windows 8 system, none of the shortcut keys work, in fact I get what sounds like the default beep, as if I am doing something wrong. Some other aspects of the program aren't functioning quite correctly also, but this is something I just expect to work and have no idea how I would work around this problem. Thanks in advance for any advice on how to fix this problem.
Gary
It's all designer generated:
this.saveConfigurationToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.S)));

Related

Using the Windows On screen keyboard in your Winform application without calling Osk.exe or Tabtip.exe

I want to load the windows on-screen keyboard as part of my application (like importing some dlls or something), not with Process.Start(). Just like this article explained - https://blog.tombam.net/implementing-textbox-with-on-screen-touch-keyboard-part-1/ . Only this solution doesn't work for me (the keyboard doesn't pop-up when clicked on the textbox). Is there another way? Or does anybody know what to do with the project that's in the link to make it work?
Thank you for the help in advance :)

Disable Setting button on android keyboard

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.

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.

Windows Phone Button Press Effect

I'm Building a very basic game for windows phone based on one I created for iOS. In iOS there is a event for when the screen is pressed. I have looked and cannot find a equivalent in windows phone so have decided to use a large button placed over the entire of the view however i have the issue that when i press the button it fills out in the accent colour. i have tried changing the clickmode .ect to solve this as suggested in some older posts for windows phone 7 however none of these seem to be working. Any help is appreciated
Thanks
Found a better solution for my requirements.
Realised that if on the root of the application page i can set a Tap event to fire code so his works like touchesBegan on iOS

.NET API for launching Internet Explorer with certain size and position?

I would like to create a windows desktop-looking app (Windows 7 and 8) out of my online html-app. I have tried embedding a browser-control in a WPF-window but then noticed it was an old version (IE7) of IE running inside WPF. I'm not sure if IE9 or IE10 will ever work embedded inside a WPF-app but I guess not. And I need the latest version of IE.
I've looked into the command line switches for IE but that didn't seem to do much with the visual presentation of the windows, except "kiosk mode". What I want is to at least set size and position, turn off all bars (except perhaps the address bar).
I've also looked into HTA-apps but I can't get it to open the external url in the same window. It keeps opening a new ordinary IE-window.
Any more options I haven't tried? Perhaps I can use some .NET API for this? I have searched but found very little information about any API for this (Only Process.Start which isn't enough)
What you may be looking for is called Kiosk Mode, which hides the browser UI and gives you a full-screen page only.
It sounds like you need to split things up: you're going to need to detach yourself from how your user interface works. You might need to re-engineer some parts of your application, but in the end you'll be way closer to your goal with two distinct UIs, in a branched structure like this (poor ASCII art schema below):
(Application core)
| |
Web UI ---+ +--- WPF UI
Different UIs have different capabilities, and you may find that leveraging each one provides benefits.
I've solved this myself now:
It turnes out the WebControl in WPF supports IE9 after all. It just depends on the content I'm loading in it. The source html has to be of the correct format for it to be loaded with IE9 (as opposed to IE7 which seem to be default).
Found it out here.

Categories

Resources