desktop-application

How to share a folder in a asp.net web application with a win form client?

谁说胖子不能爱 提交于 2019-12-11 06:25:45
问题 In this asp.net web application, users can upload files to the server through a web interface. All the uploaded files are save in a server side folder. If I want to create a new win form desktop client (actually, its a WPF application) which can be used to upload files to that same server side folder as web interface does, how can I share that server side folder with that win form client? Any alternative suggestions are also welcome. thanks for all in advance. 回答1: Like answered in What is

Couchdb online offline synchronisation

南笙酒味 提交于 2019-12-11 04:53:49
问题 I'm building a .NET application which will have a local CouchDB instance where all data is written to, and a central CouchDB where the local CouchDB is synchronised to. The difficulty is that there will be multiple clients which will synchronise with the database at different points (and could edit existing data, creating conflicts). The internet connection will not be consistent, so consequently the majority of data will be created/ edited while offline. I believe that CouchDB handles this

C# export to excel from sql server

£可爱£侵袭症+ 提交于 2019-12-11 01:49:13
问题 In my C# windows application, I am exporting sql server data to excel on remote drive. But it is too slow. However, if I export data to excel in the local drive, it is fast. How can I increase the time if I want to export data to remote drive? Thanks in advance... 回答1: Export to a temp folder on the local machine, copy it to the network and then delete the file from the temp folder. You could even do the copy and delete on a separate thread so the UI's not blocked. 回答2: If it is an option for

How to create a folder in the application installed directory

心不动则不痛 提交于 2019-12-10 23:58:17
问题 I have done an application in c# windows application. In this i created a project with name ACHWINAPP. I have written some code to get the path that i required as follows strFilePath = Directory.GetCurrentDirectory(); strFilePath = Directory.GetParent(strFilePath).ToString(); strFilePath = Directory.GetParent(strFilePath).ToString(); strFilePath = strFilePath + "\\ACH\\"; But when i create a setup for the project and installed in a direcotry namely some F:\ i am getting the error ACH as not

windows 8.1 assigned access for Desktop App

心已入冬 提交于 2019-12-10 21:42:33
问题 I have a Desktop Application written in WPF (originally for Windows 7) that I would like to run in Kiosk (Assign Access mode) on a Microsoft Surface Pro 2. The assigned access feature looked perfect, but it doesn't support non-store apps. I just need a way to prevent the user from switching to another app or getting access to the OS etc. Possible? 回答1: Make your application fullscreen as shown here: full screen wpf In your main window constructor subscribe on Deactivate event or override

Create a dock like application using C# and wpf

南楼画角 提交于 2019-12-10 21:24:40
问题 I need to create a application which is similar to those we will get when we buy a laptop. It will be visible only when the mouse pointer reaches the top of the window. So how can I able to do this using C# 4.0 ? http://www.notebookcheck.net/uploads/pics/win2_12.jpg this link u can see the application. I need to create such type Any idea pls share. Thanks 回答1: I suppose there are several different ways to achieve this effect: You can place part of the window of your application above the

Problem regarding consuming php web service in c# Desktop application

戏子无情 提交于 2019-12-10 20:46:00
问题 I am developing a c# desktop application and using a webservies which is developed in a php application when i try to consume that application. I just add web REference of that web service and try to access throught the following code WebReference.TestWSDL pdl = new testingApp.WebReference.TestWSDL(); string copy = pdl.verify("testing"); it throws the error when i try to call the method verify. the error is Possible SOAP version mismatch: Envelope namespace http://schemas.xmlsoap.org/wsdl/

Global hook mousedown and keypress events are not firing

青春壹個敷衍的年華 提交于 2019-12-10 18:47:37
问题 I've used the exact same code in my c# desktop application as it is given in here : https://github.com/gmamaladze/globalmousekeyhook It works and fires the mousedown and keypress events as long as the application is in focus. If i'm on another application, let'say on visual studio (while mousekey logger is running), it doesn't fire the events. Is it correct behavior? If so, any help to achieve this would be appreciated. 回答1: As suggested by @Hans Passant, application must be run in elevated

UI Controls Overlapping & Fonts Issue in Windows Forms Application

杀马特。学长 韩版系。学妹 提交于 2019-12-10 17:49:35
问题 I have made a Windows Forms Application. I have a form with some controls. The Controls overlap, and also Fonts are changed automatically, at some places the fonts go White in Buttons, TextBoxes. I am attaching a picture for more understanding. 1: This happens in some End User's Systems, I am unable t find why this issue occurs. Any help would be appreciated. Thnx in Advance 回答1: If you are using system fonts and colours, your winforms application is at the mercy of the operating system's

How to call a method after user control is visible

跟風遠走 提交于 2019-12-10 12:54:52
问题 I have created a Windows application in C# with two user controls. When the form loads first user control is loaded(and shown)and when I click Next I load second user control. Now I want a method from this user control to be called once the user control is visible. I am not able to do so. If am call the method from Load event it gets fired before the control is visible. Can someone please guide me on how should I make the call of method after the control is visible. 回答1: You probably want to