windows-10-desktop

Screenshot captured using BitBlt in C# results a black image on Windows 10

时光总嘲笑我的痴心妄想 提交于 2019-11-30 15:34:04
Screenshot captured using BitBlt in c# resulted a black image on Windows 10 . Please help me to resolve this. Screenshot is black image for Chrome (when hardware accelerated mode is on) and IE/Edge windows. Output image is black only for Edge, IE browser windows in Windows 10 and Chrome browser window when hardware accelerated mode is ON. Apart from all other windows including transparent windows screenshots are good. Here is the code: const int Srccopy = 0x00CC0020; var windowRect = new Rect(); GetWindowRect(handle, ref windowRect); int width = windowRect.right - windowRect.left; int height =

“No credentials are available in the security package” when connection to Oracle is performed

风格不统一 提交于 2019-11-29 23:35:08
问题 The tests that performs connection to Oracle database started fail with AuthenticationException after last Windows update. The message and stack trace are provided below: <ErrorInfo> <Message>Test method threw exception: System.Data.Entity.Core.EntityException: The underlying provider failed on Open. ---> Oracle.ManagedDataAccess.Client.OracleException: Oracle Communication: Failed to connect to server or failed to parse connect string ---> OracleInternal.Network.NetworkException: Oracle

IAsyncOperation await in Windows Service: “Type is defined in an assembly that is not referenced…”

若如初见. 提交于 2019-11-29 11:40:12
I have a Windows Service (created using this tutorial ). And I am trying to run an IAsyncOperation : var uri= new Uri(@"uri/to/second/app"); var options = new LauncherOptions { TargetApplicationPackageFamilyName = "second-app-guid" }; var results = await Launcher.LaunchUriForResultsAsync(uri, options); However, I get the following error from the await : The type 'IAsyncOperationWithProgress<,>' is defined in an assembly that is not referenced. You must add a reference to assembly 'Windows, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null, ContentType=WindowsRuntime'. The type

Scaling the non-client area (title bar, menu bar) for per-monitor high-DPI support

我的梦境 提交于 2019-11-28 16:51:03
Windows 8.1 introduced the ability to have different DPI settings for different monitors. This feature is known as "per-monitor high-DPI support." It persists and has been further refined in Windows 10. If an application does not opt in ( i.e. , is either DPI-unaware or high-DPI aware), it will be automatically scaled up by DWM to the proper DPI. Most applications fall into one of these two categories, including most of the utilities bundled with Windows ( e.g. , Notepad). On my test system, the high-DPI monitor is set to 150% scale (144 DPI), while the normal monitor is set to the system DPI

IAsyncOperation await in Windows Service: “Type is defined in an assembly that is not referenced…”

久未见 提交于 2019-11-28 05:21:23
问题 I have a Windows Service (created using this tutorial). And I am trying to run an IAsyncOperation : var uri= new Uri(@"uri/to/second/app"); var options = new LauncherOptions { TargetApplicationPackageFamilyName = "second-app-guid" }; var results = await Launcher.LaunchUriForResultsAsync(uri, options); However, I get the following error from the await : The type 'IAsyncOperationWithProgress<,>' is defined in an assembly that is not referenced. You must add a reference to assembly 'Windows,

Spyder does not run in Anaconda virtual environment on Windows 10

谁说我不能喝 提交于 2019-11-26 16:16:48
问题 This is my first post here. I tried to find an answer to this question but to no avail. Just installed Anaconda2 (2.7.11 Python kernel) on my Win10 machine. I am trying to learn the conda command. Here is my problem. I go to the Anaconda prompt window. I create a virtual environmant with conda create -n myenv python=3.4 command. I activate the environment with activate myenv . When I list the environmants with conda env list it shows as active (star next to it). When I start python from a

Show touch keyboard (TabTip.exe) in Windows 10 Anniversary edition

一曲冷凌霜 提交于 2019-11-26 13:05:29
In Windows 8 and Windows 10 before Anniversary update it was possible to show touch keyboard by starting C:\Program Files\Common Files\microsoft shared\ink\TabTip.exe It no longer works in Windows 10 Anniversary update; the TabTip.exe process is running, but the keyboard is not shown. Is there a way to show it programmatically? UPDATE I found a workaround - fake mouse click on touch keyboard icon in system tray. Here is code in Delphi // Find tray icon window function FindTrayButtonWindow: THandle; var ShellTrayWnd: THandle; TrayNotifyWnd: THandle; begin Result := 0; ShellTrayWnd := FindWindow

Show touch keyboard (TabTip.exe) in Windows 10 Anniversary edition

柔情痞子 提交于 2019-11-26 02:57:15
问题 In Windows 8 and Windows 10 before Anniversary update it was possible to show touch keyboard by starting C:\\Program Files\\Common Files\\microsoft shared\\ink\\TabTip.exe It no longer works in Windows 10 Anniversary update; the TabTip.exe process is running, but the keyboard is not shown. Is there a way to show it programmatically? UPDATE I found a workaround - fake mouse click on touch keyboard icon in system tray. Here is code in Delphi // Find tray icon window function