desktop-application

How to make an auto-complete textbox in a winforms desktop application

孤者浪人 提交于 2019-12-17 15:58:08
问题 I have a list of words. The list contains about 100-200 text strings (it's names of metro stations actually). I want to make an auto-complete textbox. For an example, user press 'N' letter, then an (ending of) appropriate option appear (only one option). The ending must be selected. How to do that? PS1: I guess, there is a textbox control with a Property something like this: List<string> AppropriateOptions{/* ... */} PS2: sorry for my english. If you didn't understand -> ask me and I will try

Solutions for distributing HTML5 applications as desktop applications? [closed]

杀马特。学长 韩版系。学妹 提交于 2019-12-17 15:02:07
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . What are some solutions for distributing an HTML5 based desktop application? I want to be able to distribute my HTML5 app as a

How to deploy an Electron app as an executable or installable in Windows?

末鹿安然 提交于 2019-12-17 10:19:21
问题 I want to generate a unique .exe file to execute the app or a .msi to install the application. How to do that? 回答1: You can package your program using electron-packager and then build a single setup EXE file using InnoSetup. 回答2: You can also try with the electron-boilerplate. Which has 'release' task of gulp and it will create single ready to go executable file for all cross platform. You only need to build application from all three platform to generate particular platform executable.So you

Create Windows Installer for Java Programs

别来无恙 提交于 2019-12-17 08:23:51
问题 This question was migrated from Software Engineering Stack Exchange because it can be answered on Stack Overflow. Migrated 8 years ago . I'm a Java beginner. I already created a simple GUI application that display will "hello world" label. But, how can I create an installer from .java or .jar for windows. Let's say that I have created a useful application and want to share it with my friends to install it in their PC without they need to know what is JRE, or how to download JRE. 回答1: Deploy

Integrating JavaFX 2.0 WebView into a Swing Java SE 6 Application

家住魔仙堡 提交于 2019-12-17 07:21:53
问题 I was looking for a way to integrate a Web-Browser-Component in an existing Swing-Application and found WebView for Java FX 2.0. Furthermore I found a blog post on java.net showing how to integrate a Java FX component into a Swing Application . So I guess it might be doable, but I haven't tried yet. I'm curious, do you think this is a good approach? Are there any better solutions? Is it even doable? Is maybe something prebundled out there? The motivation is: I want to integrate some

Disable menu items programmatically

試著忘記壹切 提交于 2019-12-14 04:19:36
问题 I am working on a Desktop app with the Netbeans RCP. I have a number of menu items that are beeing added to the menu through annotations in the TopComponents. I would like to be able to disable several of these menu items, depending on the access rights of the logged user. 回答1: One way to do this in the NetBeans Platform is to register a Presenter.Menu in the menu: @ActionID(id = "com.company.MyPresenter", category = "Edit") @ActionRegistration(displayName = "com.company.Bundle#CTL

How to add the external file to C# application? [closed]

故事扮演 提交于 2019-12-14 04:03:33
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 5 years ago . I just want to add the external file in C# desktop application to store the queries. In that I want to add each query as string. And will take out of the file when needed. 1) How to add external file in C# desktop application. 2) How can i access the file from my application?

How to hide a window in start in c# desktop application?

末鹿安然 提交于 2019-12-13 20:34:02
问题 I am trying to make a desktop application that will be hidden but will display only after a time interval. I am trying to set Visible =false at window load event but it still displays. 回答1: For WinForms applications I have found that the easiest way to control the start-up visibility is to override the SetVisbileCore method. Here is a simple example, the form will show after 5 seconds using System; using System.Windows.Forms; namespace DelayedShow { public partial class Form1 : Form { private

How can I prevent my desktop application from breaking horribly when the user messes with its files at run-time?

谁说我不能喝 提交于 2019-12-13 18:15:08
问题 Such as deleting the output file during run, directing two instances of the sw to the same IO etc ? 回答1: There isn't much you can do to prevent the user from doing that, but what you can do is to apply defensive programming. In your two examples you'd have to, every time you access a resource, detect failure conditions and react appropriately either throwing exceptions and dying or continuing without access to that resource. Never assume a resource allocation will succeed, always check what

Disposing disposable dependencies with Windows desktop applications

做~自己de王妃 提交于 2019-12-13 16:44:05
问题 We all know that we should dispose of disposable objects once we have finished using them. The question is: If I have a disposable object (eg. a database context) being used throughout the entire lifetime of a windows desktop application (e.g. WPF or WinForms): Should I dispose of that object in the application shutdown event (why, when, when not)? 回答1: As a rule, you should avoid having disposable objects that live for the lifetime of your application. Many objects, such as database contexts