desktop-application

Get the URLs of opened tabs in browser

穿精又带淫゛_ 提交于 2019-12-18 13:38:38
问题 I'm working on a project, and I need to get the URLs of all opened tabs in browsers (such as Google Chrome, IE, Firefox, ...) Is there any way to do that using c# or vb.net? p.s. it is a windows form application 回答1: ie: Dim browser As SHDocVw.InternetExplorer Dim myLocalLink As String Dim myDoc As mshtml.IHTMLDocument2 Dim shellWindows As SHDocVw.ShellWindows = New SHDocVw.ShellWindows() Dim filename As String For Each ie As SHDocVw.InternetExplorer In shellWindows filename = System.IO.Path

Using the browser for desktop UI

偶尔善良 提交于 2019-12-18 12:36:09
问题 How can I use the browser as a UI for a desktop app? The ways I have come up with so far are... Use all HTML/Javascript. Problem: Can't access filesystem or just about anything else. Run a local webserver while the application is in use. Problem: How do I kill it when the user is done? My users are not technical enough to Ctrl+C. Embed a browser component in a regular GUI. Problem: Embedded browser components tend to be glitchy at best. The support for Javascript/CSS is never as good as it is

What do you log in your desktop applications to improve stability?

佐手、 提交于 2019-12-18 11:29:12
问题 I've started using SmartInspect in my Delphi applications because my users were running into bugs/problems I couldn't reproduce on my machine. When I have a general idea of the problem I'll monitor the application in a few specific places to confirm what is or is not working. When the bug doesn't have an obvious cause, I feel lost. I don't know where to start logging in order to narrow down the problem. Are there common techniques or best practices for using a logger? SmartInspect seems to be

Allow a custom file to double click and open my application while loading it's data [duplicate]

巧了我就是萌 提交于 2019-12-18 07:06:53
问题 This question already has answers here : How to associate a file extension to the current executable in C# (9 answers) Closed 5 years ago . Just like when you make a reference in windows, to open a .txt file, it may open NotePad.exe and or Word.exe, while loading the text from the file into the editor. How can I do this with my Desktop Application. I am having a custom file type for it with extension .mmi. I want it so that when the user double click this file type it will not only open my

How to deserialize json string to object list in c# dot

☆樱花仙子☆ 提交于 2019-12-18 05:41:54
问题 I am working with the following JSON string { "transactions": [ { "paymentcharge":"0.0", "amount":352, "id":13418, "shippingcharge":35, "shippingtype":2, "status":2, "paymenttype":1, "date":"2012-10-06 16:15:28.0" }, { "paymentcharge":"0.0", "amount":42455, "id":16305, "shippingcharge":0, "shippingtype":2, "status":2, "paymenttype":2, "date":"2012-11-30 09:29:29.0" }, { "paymentcharge":"1.0", "amount":42456, "id":16305, "shippingcharge":0, "shippingtype":2, "status":2, "paymenttype":2, "date"

How to change windows Applicatoin's default icon in Setup Project

老子叫甜甜 提交于 2019-12-17 21:56:37
问题 How to change the Windows Application's default icon with other one in C# desktop application. I am trying to change it in Setup Project but it is not. I want to show my own icon with Application's shortcut rather then windows default icon 回答1: It is truly odd that when you are creating a deployment (set up) project, and you create a shortcut to the "Primary output" (an .exe), the shortcut does not automatically get the .exe's icon. Instead it gets a generic document shortcut icon. Some of

How can I send a message from Google Chrome extension to desktop application?

痞子三分冷 提交于 2019-12-17 20:19:36
问题 I have a Windows desktop application which must work in collaboration with my Chrome extension. Can I send a message to my desktop app somehow from Google Chrome extension? Which IPC objects can I use? 回答1: I see three options: You could use the internet. You can have a remote service that both the chrome extension and your desktop app talk to, to communicate. You could have your desktop app have a simple server built into it so that the chrome extension can make local http requests to it to

Why change from WPF to Silverlight 4?

拈花ヽ惹草 提交于 2019-12-17 18:49:00
问题 I'm working on an application we made WPF instead of Silverlight as we wanted a full blown desktop application with the whole unique feeling and advantages that gives. However, with the announcement of Silverlight 4 I hear there is a buzz about Silverlight mostly being the preferred choice also for desktop applications. So; why should I consider moving my WPF application to Silverlight 4 - given that I still want a desktop application? 回答1: Keep in mind that Silverlight 4 is currently in Beta

Can Maven collect all the dependent JARs for a project to help with application deployment?

非 Y 不嫁゛ 提交于 2019-12-17 17:26:00
问题 I'm just starting to use Maven, (evaluating it, really) and I need to be able to quickly generate a JAR file for my application and a directory with all the dependencies (for example, lib) so that I can deploy those two to be run in a stand-alone manner. Generating the JAR file with the proper manifest is easy, but I do not know how to get Maven to copy the dependencies for the current project into a lib directory that I can deploy. Since this is for a stand-alone Java applications, I am not

How can I launch a URL in the users default browser from my application?

不羁的心 提交于 2019-12-17 16:25:07
问题 How can I have a button in my desktop application that causes the user's default browser to launch and display a URL supplied by the application's logic. 回答1: Process.Start("http://www.google.com"); 回答2: Process.Start([your url]) is indeed the answer, in all but extremely niche cases. For completeness, however, I will mention that we ran into such a niche case a while back: if you're trying to open a "file:\" url (in our case, to show the local installed copy of our webhelp), in launching