windows-10

Redraw issue on Windows10 with DoubleBuffering and FormBorderStyle.None

二次信任 提交于 2019-12-29 01:53:06
问题 I have an issue with a Windows Forms project, which I can reproduce only on Windows 10 machine (on Windows 7 it does work). I think that I could isolate the source of issue, namely, if I switch double buffering on and set FormBorderStyle to None , then if I resize the form e.g. in an event handler, the parts of background and some controls being not redrawn. It is also so, that sometimes it works(one time from five). Not redrawn it looks so(often a bit different): and so it should looks like:

Can you detect “Tablet Mode” in Edge and IE11 using JavaScript on Windows 10?

让人想犯罪 __ 提交于 2019-12-29 00:39:14
问题 I am thinking of making my UI to dynamically change to a more touch-friendly layout when the user switches "Tablet Mode" on, and switch back to our "desktop" layout if they turn Tablet Mode off. That requires (1) detecting tablet mode in JavaScript (2) detecting the on/off change of tablet mode. I prefer pure JavaScript and DOM (not jQuery, Modernizr etc). Reason: We have a high density (desktop like) user interface, which we can't easily just change. I wish to add spacing to be more touch

Can't open Package.appxmanifest in Visual Studio 2015

青春壹個敷衍的年華 提交于 2019-12-28 18:02:42
问题 I started porting my app to Windows 10 Universal App today, started as a blank project. However I can't open the Package.appxmanifest file in Visual Studio, even when I right-click and select View Code (F7). It says "Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information." Any solution for this? 回答1: I fixed it by removing the Apache Cordova Tools Package. 回答2: You are hitting by a known bug that we have fixed it for new installs.

Windows Universal App Fullscreen Button

放肆的年华 提交于 2019-12-28 05:52:10
问题 Some Apps in the Windows Store have a Fullscreen button additional to the minimize, maximize and close button in the Titlebar. This button looks similar to the exit Fullscreen button that every App has in the Titlebar if the Fullscreen is active. Is that a system control and if how can I use it in my C# Universal App? 回答1: You'll have to use the Window.SetTitleBar method to achieve your desired behavior. Therefore, you'll need to accomplish a few steps: First, enable the view to extend into

Genymotion error after windows 10 upgrade

旧巷老猫 提交于 2019-12-28 02:03:47
问题 Genymotion is giving me this error after the Windows 10 upgrade: Unable to load virtual box engine How to fix this? 回答1: I solved this issue. It's working fine now. I'm using: + Window 10 + VirtualBox-5.0.2-102096-Win + Genymotion-2.5.3 Step 1 : We should set Run as this program as an administrator & Compatibility mode Window 7 for those file. C:\Program Files\Oracle\VirtualBox + VBoxHeadless.exe + VBoxManage.exe + VirtualBox.exe C:\Program Files\Genymobile\Genymotion + genymotion.exe Step 2

Can't loaded Package.appxmanifest in Visual Studio 2015

半世苍凉 提交于 2019-12-25 18:34:14
问题 I use Visual Studio 2015 in Windows 10. I create universal app for Windows 8.1. I need to open the file Package.appxmanifest (for Windows Phone 8.1). I can only see message - "loaded", but manifest editor is not loaded. If I created app for Windows 10 - manifest file is opened. I read this topic. I try reinstall “Universal Windows App Development Tools” and install KB3073097 update, but it did not help. 回答1: This is issue is completed. I installed the service pack 1 for visual studio 2015. 来源

MSVC OSVersion returning incorrect version

雨燕双飞 提交于 2019-12-25 17:46:38
问题 Running Windows 10 on my development machine. Trying to get the OS version to return a major version of 10. Tried this and also tried environment variables via System::Environment::OSVersion->VersionString . Both are returning Microsoft Windows NT 6.2.9200 . Tested executable on a Windows 7 machine and I get 6.1.* (correct). Running this in Powershell I get the correct result: PS Z:\> [System.Environment]::OSVersion.Version Major Minor Build Revision ----- ----- ----- -------- 10 0 14393 0 I

Screenshot (PIL)ImageGrab.grab / BitBlt on Win10 only return the Background?

白昼怎懂夜的黑 提交于 2019-12-25 16:47:48
问题 i have a big problem with windows 10, normaly i used PIL (Python) to get a nice and clean screenshot from inside a program. but with windows 10 this does not work anymore, now i become only everything on the Desktop but my FullScreen Window is missing. i also tryed to use: BitBlt(screen_copy, 0, 0, width, height, screen, left, top, SRCCOPY | CAPTUREBLT) but the result is exactly the same :( does anybody has any solution or idea what has changed in Win10? thank you so much. 回答1: Another

Rails 5 Server Issues (Windows 10)

我的梦境 提交于 2019-12-25 12:03:29
问题 Newbie to Ruby on Rails here, I just did a fresh install of Ruby & Rails on Windows 10 (Bash on Ubuntu shell). I seems to having issues on starting the Rails server. Already checked the other threads on the issue, but everyone else is using OSX. :( Hope someone can help! When running rails s, root@TEAMROCKETHQ:~/newapp# rails s /root/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.0.2/lib/rails/app_loader.rb:40: warning: Insecure world writable dir /root/.rbenv/versions in PATH,

Is it possible to put the SDL .lib, .dll, and header files somewhere so I can just type #include <SDL2.h> in a visual studio 2017 RC project?

流过昼夜 提交于 2019-12-25 09:28:05
问题 My question is, is there a place(s) I can put the SDL .lib, dll, and header files, or process I can do, so when I create a C++ project I can just type #incldue <SDL2.h> instead of having to mess about with the project settings every time. Also making a project template is not a desirable solution to this question. Also, the IDE I am using is visual studio 2017 RC, running on windows 10. I also have access to the SDL source file so I could do something with the .c files if necessary. Note that