Executable directory where application is running from?

This is the first post on google so I thought I’d post different ways that are available and how they compare. Unfortunately I can’t figure out how to create a table here, so it’s an image. The code for each is below the image using fully qualified names. My.Application.Info.DirectoryPath Environment.CurrentDirectory System.Windows.Forms.Application.StartupPath AppDomain.CurrentDomain.BaseDirectory System.Reflection.Assembly.GetExecutingAssembly.Location System.Reflection.Assembly.GetExecutingAssembly.CodeBase New … Read more

QScrollArea with dynamically changing contents

The essential steps are: The container widget that holds the buttons (your CheckableButtonGroup) must have a QLayout::SetMinAndMaxSize size constraint set. Then it will be exactly large enough to hold the buttons. Its size policy doesn’t matter, since you’re simply putting it into a QScrollArea, not into another layout. The scroll area needs to set its … Read more

Writing custom code for PowerPoint using leap motion?

The LEAP Motion Controller Add-ins for Microsoft Office which you found is likely to be the best way to integrate the controller with Powerpoint. To get started with it, you’ll need Visual Studio (seems like you’ll need 2012). Microsoft has an overview page for Office Development in Visual Studio. Follow the instructions on the Configuring … Read more

Why can’t I find Java desktop application in Netbeans 7.1

Look here: http://netbeans.org/bugzilla/show_bug.cgi?id=204661 Support for [B]SAF (JSR 296, basically the framework that was behind your “Java Desktop Application” project template) has been abruptly dropped (for no valid reason, let me add). However, as Bill says in his answer, it is not necessary to use the SAF in order to visually design a form. NetBeans swing-designer … Read more

Packaging a Node.js web application as a normal desktop application [closed]

Option 1: Electron (formerly atom-shell) This is the shell that GitHub’s Atom and Microsoft’s Code editors use. It’s very similar to node-webkit, though it will run the script first, and you have to create a view/window for the user. There are some other minor differences, but it’s worth looking at. Option 2: NW.js formerly node-webkit … Read more

Create Windows Installer for Java Programs [closed]

From here: Open Source Installers Generators in Java IzPack IzPack is an installers generator for the Java platform. It produces lightweight installers that can be run on any operating system where a Java virtual machine is available. Depending on the operating system, it can be launched by a double-click or a simple ‘java -jar installer.jar’ … Read more

UWP on desktop closed by top X button – no event

A restricted capability confirmAppClose was added in Windows 10 version 1703 (build 10.0.15063) in order to provide apps the ability to intercept window closing. Manifest namespace: xmlns:rescap=”http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities” Manifest: <Capabilities> <Capability Name=”internetClient” /> <rescap:Capability Name=”confirmAppClose”/> </Capabilities> It needs extra approval when submitting to the store. But then will fire the CloseRequested event on a SystemNavigationManagerPreview instance. … Read more