windows-10

How to detect if Windows 10 is in tablet mode

依然范特西╮ 提交于 2019-12-21 05:31:48
问题 I'm trying to find a method to detect if Windows 10 is in tablet mode or not. Please note, this is not about querying whether the user has a Tablet PC or not - that can be solved with GetSystemMetrics(SM_CONVERTIBLESLATEMODE) . In my case the above function always returns 0 - whether Win10 is in tablet mode or not. This thread without an epilogue seems to suggest that there is no WinAPI call that could detect Tablet mode. I hope that isn't the case, since there are different WM messages

How to enable the Windows 10 “Containers” feature?

十年热恋 提交于 2019-12-21 04:51:35
问题 Using the latest Windows 10 Fast Ring build 14316 (inside a VMware virtual machine), I'm trying to make the Desktop App Converter function working. When running the PowerShell script as advised: PS C:\> .\DesktopAppConverter.ps1 -Setup -BaseImage .\BaseImage-14316.wim I'm getting an error: Assert-RequiredFeatureEnabled: fatal error 1000: required feature is not installed or enabled. Please refer to machine setup instructions. In C:\MyPath\DesktopAppConverter\converter_util

`PrintQueue.AddJob` does not finish

末鹿安然 提交于 2019-12-21 04:16:27
问题 I tried following code on some PCs. using (var lps = new LocalPrintServer()) using(var pqueue = lps.GetPrintQueue("PRINTER-NAME")) { pqueue.AddJob("job-name", @"C:\example.xps", false, pticket); } On only one PC, it did not work. The application froze at AddJob method. It never finished even after waiting for long time. There are no exceptions. The PC where this problem occurred is Windows10 and applied CreatorsUpdate. Other PCs are Windows7, Windows8.1 and Windows10 applied AnniversaryUpdate

VB6 Application on Windows 7 Cannot Access Mapped Drives

馋奶兔 提交于 2019-12-21 04:11:26
问题 I have a VB6 application which links to several POS terminals from a Windows 7 32-bit machine. The POS terminals are mapped to the Windows 7 machine and I can access the POS terminals from the Windows 7 machine from Explorer or via the cmdline/shell. The application has been updated to ADO 2.8 and all other controls and components I no longer had source code for have been re-written. After a few annoying hiccups, I got the application to recompile on the Windows 7 computer without errors. Now

Open Windows 10 touch keyboard docked in WPF

▼魔方 西西 提交于 2019-12-21 03:36:17
问题 We started creating a WPF touch application in Windows 8 and recently migrated to Windows 10. One feature we implemented is opening the Windows Keyboard when a TextBox receives focus. In Windows 8, it was possible to dock the keyboard to the bottom by setting the registry setting EdgeTargetDockedState and starting the TabTip process: string path = @"C:\Program Files\Common Files\Microsoft Shared\ink\TabTip.exe"; var info = new ProcessStartInfo(path); info.WindowStyle = ProcessWindowStyle

Adding BasedOn Style on App.xaml is crashing on App() { InitializeComponent(); }

荒凉一梦 提交于 2019-12-21 02:08:46
问题 Adapting an project to Template10, I go into inherited styles in App.xaml are crashing. It looks like Template10 , doesn´t support inherited or extended styles. I was trying to extend SubTitleStyle from TitleStyle but I get an COM exceptions on GetXamlType in XamlTypeInfo.g.cs My App.xaml.cs sealed partial class App : BootStrapper { public App() { InitializeComponent(); } public override async Task OnStartAsync(StartKind startKind, IActivatedEventArgs args) { NavigationService.Navigate(typeof

WPF Desktop App, Windows 10 Notification Toast 2016 (UWP Community Toolkit)

蹲街弑〆低调 提交于 2019-12-20 23:24:13
问题 I'm trying to display Windows 10 Toasts with my WPF C# Desktop application . Sadly the API and general support concerning Windows 10 notifications in non-UWP or Store apps seems pretty limited and chaotic. Lately the UWP Community Toolkit was published, which seems to try and make things easier for us. There's also this Store app, Notifications Visualizer, which helps in making Toasts like this: I went on and tried to generated the Toast using C# and the API provided by the UWP Community

Xampp control panel is not showing

a 夏天 提交于 2019-12-20 17:41:42
问题 My Xampp control panel is not showing in the desktop (Windows 10), but can only up the servers through the shortcut (minimized option in the task bar). As follows: I have close the application without stopping the servers, will that be the case of this matter? 回答1: This may be too late, but I had the same issue for some time, I will share my workaround, it is not a permanent fix but it works, you have to use procexp from SysinternalsSuite https://docs.microsoft.com/en-us/sysinternals

Set audio endpoint devices application specific (programmatically)

天涯浪子 提交于 2019-12-20 17:32:10
问题 Link to the bug report on 'Feedback Hub' An audio endpoint device, from here on referred to as 'endpoint', is a physical or virtual audio output or input device. With the Windows 10 April Update 1803 the long overdue 'App volume and device preferences' have been introduced. These settings allow more control over audio stream management as it is now possible to set different endpoints for different applications, no matter whether that particular application comes with an endpoint selection or

C# Display text on the taskbar | Windows 10

回眸只為那壹抹淺笑 提交于 2019-12-20 12:38:13
问题 I want to display a text in the taskbar like the NetSpeedMonitor program . I thought about how Windows did that with der Date and Time display, but I couldn't find any answer. I want to do this with C# and .Net 4.x 回答1: if you watch this pic you see every thing in windows application have an handle(HWND) and if you get it you can change this app parameters and add or remove any thing on if look at this link there is sample for it in console application you just need just doing same thing on