desktop-application

UWP on desktop closed by top X button - no event

[亡魂溺海] 提交于 2019-11-28 11:58:41
An UWP app which runs on desktop can be closed from the top X button but it doesn't have any event for it. It is known that on phones and tablets an app should rely on Suspending event, no matter how it's triggered and then the app should rely on ApplicationExecutionState . However, here is a (maybe) common scenario: on phones the Suspending event suffice and in case a Voip call is going on it will be operated by OS after the app is suspended. On desktop the close button is expected, by user, to completely close the app. So if a call is on going it should be hanged up and certain resources

Can I determine the order in which my units have been initialized?

和自甴很熟 提交于 2019-11-28 10:58:08
I am hunting a bug which might be connected to unit initialization order. Is there a way to see which initialization section was executed when? I need to know the order. This is during debugging, so I have the full power of the Delphi IDE, in my case Delphi 2009. I could set breakpoints, but this is rather tedious when having many units. Do you have any suggestions? For units in the interface uses list, the initialization sections of the units used by a client are executed in the order in which the units appear in the client's uses clause. see Online Help \ Programs and Units \ The

Can I send SMS Messages from a C# Application?

我与影子孤独终老i 提交于 2019-11-28 10:15:25
I'm looking to build a program that would allow me to send SMS messages directly from the C# Application. I intend to build an 'Automatic Appointment Reminder' system that would automatically send SMS messages to recipients' mobile phones notifying them of their upcoming appointment. Could anyone advise on how I would implement this type of feature as I have no experience in 'Mobile Communications' and mobile connectivity with desktop applications. My carrier is EE (If that helps?) Any help would be greatly appreciated. Most major carriers offer an email to text service. The program can use

Custom installer for application in Visual Studio 2017

只愿长相守 提交于 2019-11-28 10:04:05
问题 I need to generate an installer for my application but first I need to know if it is already installed on the system node.js, npm and other applications Is it possible to include the installation of node.js within the installation of my application and to know if it is already installed? I'm using Visual Studio 2017 and a WPF project for desktop applications When the application is already installed I need to execute npm commands in the console for this reason I need to install them before or

Java GUI Frameworks - which are out there? [closed]

删除回忆录丶 提交于 2019-11-28 09:14:49
I mainly developing Java EE and now I'm in a situation where I need to write a small native Java app. But tbh I'm a little bit lost, which frameworks (Swing, SWT, etc.) are out there? Is some rapid dev also possible with one of these? Maybe someone could provide me some links or share his experiences. Swing and SWT are the two main candidates, yes. JavaFX also comes to mind, but I think it's not yet ready for prime time: it had no UI editing tool worth speaking of for a long time, the only enterprise UI prototype I know of in real life was a fiasco... Swing and SWT are the two you might think

Dependency Injection

非 Y 不嫁゛ 提交于 2019-11-28 09:05:27
问题 We are builing a windows desktop application (not web based) and trying to come up with the best way to implement Repository and UnitOfWork Pattern. In a typical Asp.Net Mvc application your repositories are injected with data context, services are injected with repositories and finally controllers are injected with services and all is well if you don't hit any exception, you will commit the changes. In windows forms/wpf applications it is not advisable to use single datacontext ( Oren has a

Resize display resolution using python with cross platform support

巧了我就是萌 提交于 2019-11-28 08:28:57
Resize display resolution using a python function. It should be cross platform, ie support for windows, linux and mac (it is okay to have multiple cases depending on the operating system) I have code which I think works on linux (Ubuntu) I am looking for a solution for windows and mac (should support both 32 and 64 bit machines) def SetResolution(width, height): os.popen("xrandr -s "+str(width)+'x'+str(height)) I would also appreciate it if somebody could tell me how I could get the possible display resolutions for windows and mac my function on linux is this: def GetResolutions(): screen = os

Detect if user has any application running in fullscreen [duplicate]

坚强是说给别人听的谎言 提交于 2019-11-28 07:44:01
This question already has an answer here: Is there a way to check to see if another program is running full screen 2 answers I did a notifier app in C# that sits on the taskbar and display a balloon when I get something from it, similar to Google Talk when you receive a new email but at the momment it ignores if I am running an application on fullscreen or not and just do it is job. How can I detect and make sure an application is in fullscreen mode? I don't mean maximized (as an app could be maximized on your screen but still not in fullscreen) mode but true fullscreen. For example when you

How do I launch application one from another in C#?

亡梦爱人 提交于 2019-11-28 06:52:41
I have two desktop applications. After closing the first application, the first application will start the second application. How do I start the second application after finishing first application? My first application creates a separate desktop. Chansik Im You can use .NET's Process Class to start a process as other people described. Then the question is when to call. In most cases, using either Form.Closing or Form.Closed event seems to be an easy choice. However, if someone else can handle the event and can set CancelEventArgs.Cancel to true, this may not be the right place to do this.

When Click on Hyperlinks in JavaFX ,a relevant URL should open in browser

烈酒焚心 提交于 2019-11-28 06:21:31
问题 I am developing an application in which I have some links added to the Listview and these links will keep on adding at runtime on some condition.So what I can't find is a way to how to open a url when clicking on a particular link. This is the code for adding links into list view if(counter==1) { Task task2 = new Task<Void>() { @Override public Void call() throws Exception { Platform.runLater(new Runnable() { public void run() { link=new Hyperlink(val); link.setStyle("-fx-border-style: none;"