desktop-application

Not able to bind the grid view in code behind desktop application

对着背影说爱祢 提交于 2019-12-12 17:24:36
问题 I have a grid view which lists all the customers. I am binding it in the load time of Form which is placed in the child of MDI. Columns in the grid view is predefined at the design time. My code for the Form_Load() event is: try { cn = db.createConnection(); if (cn.State == System.Data.ConnectionState.Open) { cn.Close(); } cn.Open(); cmd = new OleDbCommand("Select BillNo,PartyName,City,State,FORMAT(BillDt,'dd-mm-yyyy') as BillDt from BillMaster", cn); da = new OleDbDataAdapter(cmd); ds = new

Check if the desktop application is already running

a 夏天 提交于 2019-12-12 16:26:46
问题 I am working on a java based desktop application. One requirement is that if application is running and user try to start the application again it should do something like show some alert etc. I used file for this, when user run the app it add some text into a file and save it somewhere on the local system and when user try to run the app again i check the file and handle the situation accordingly, but there are some issue with this, like if application is abnormally terminated i am not able

Advice for supporting both Mac and Windows Desktops

浪子不回头ぞ 提交于 2019-12-12 15:32:07
问题 What are the best practices for building a GUI desktop app that will support both Windows and OS X? Let's say it's budgeting software, so there is a bit of math and some big data structures. User data is saved in XML files; there is no separate database or networking. At one extreme, you could just build the Windows version in C# and the Mac version in Objective C. Is there a better approach, so you can more easily keep the two versions in sync and write less duplicate code? Would you write

Standalone vs. Desktop application [closed]

烂漫一生 提交于 2019-12-12 14:59:36
问题 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 6 years ago . It may sound silly enough to ask but even after googling a lot I couldn't get any clear idea about it. What is difference between a standalone application and a desktop application? Some where I read that the application without GUI running in local context is called standalone

How to open the user's preferred mail application on Linux?

六月ゝ 毕业季﹏ 提交于 2019-12-12 10:42:33
问题 I wrote a simple native GUI script with python-gtk. Now I want to give the user a button to send an email with an attachment. The script runs on Linux desktops. Is there a way to open the user's preferred mail application and attach a file? 回答1: The linux command to call would be xdg-email, part of the xdg-utils package, which is on most linux desktops (at least by default on arch, debian, ubuntu). xdg-email is a "command line tool for sending mail using the user's preferred e-mail composer".

Architecture Question: GWT or Vaadin to create Desktop Application?

拟墨画扇 提交于 2019-12-12 08:15:04
问题 We're planning on creating a feedreader as a windows desktop- and iPad application . As we want to be able to show Websites AND to run (our own) JavaScript in this application, we thought about delivering the application as HTML/CSS/JavaScript, just wrapped by some .NET control or a Cocoa Touch webbrowser component. So the task at hand is to find out which framework to use to create the HTML/CSS/JS files to embed in the application. For the development of the HTML/CSS/JavaScript we would be

JavaScript desktop applications?

回眸只為那壹抹淺笑 提交于 2019-12-12 08:06:54
问题 Is it possible to create Windows desktop applications in JavaScript? I am aware of HTA (HTML Application) programs, but was wondering if there were a newer .NET or other solution where I could make use of the DLL libraries included with Visual Studio. 回答1: Latest .NET version doesn't have such feature, but you've options to do it: a) A WebBrowserObject in a WPF or Windows Forms application (it'll be an embedded Internet Explorer). b) Opera Widgets, which is a Opera browser-based presentation

How to secure Database Credentials for a client-server based Java Desktop Application

僤鯓⒐⒋嵵緔 提交于 2019-12-12 03:23:28
问题 Ok, before I start, I know a lot of people have already asked this question. But I really didnt find the solution I was looking for. So here I am, explaining my project & requirements, & asking the same question. I am doing a final year project on REMOTE ELECTRONIC VOTING SYSTEM. Developing a client side application, using java , that allows the public users to login to the APPLICATION using a LOGINID & LOGINPASS(Given to each & every voter by the election commission or so). The client-side

Publishing desktop applications to windows store

こ雲淡風輕ζ 提交于 2019-12-12 03:06:44
问题 I need to know is there any way to publish traditional desktop applications to windows store. The link, http://blogs.msdn.com/b/windowsstore/archive/2012/06/08/listing-your-desktop-app-in-the-store.aspx says we cannot upload the desktop app, but we can give a url for the customers to download. I need to know, is there any way to directly upload the exe (or whatever). 回答1: Microsoft works on a tool for this aka Project Centennial which is not available for public yet. Officially from here:

Java webcam Application keeps running in the background

扶醉桌前 提交于 2019-12-12 01:38:48
问题 I have a simple application that opens up the webcam and puts the live feed on the screen. If a user clicks on the image then the frame is saved a .png in the hard drive. But the problem is the application runs properly for the first time. But when i restart it it fails Myron BETA 2.4 # # A fatal error has been detected by the Java Runtime Environment: # # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x003744a0, pid=5688, tid=1328 # # JRE version: 7.0_02-b13 # Java VM: Java HotSpot(TM)