It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I Have created a application, and i want to create a set up file, where the application should run automatically like when we move it to start up folder. but here i want to keep it when it will install the application.
and second thing, I want to implement also when my application will close, but that application should not quit, it will run like any anti virus software, skypee, etc. and we can maximize it from show hidden icons
You are looking for a Windows Service.
The service will run at all times even when no-one is logged in.
A WinForms application could be added to the system tray How to make a Windows Forms .NET application display as tray icon? and it could communicat with the service to find out its status or to configure it.
Related
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I have simple WPF app that I deployed using click once to shared folder on my computer so it can be installed via local network. When I click on install button , it prompts me to download/save setup file, and when I run it, it installs app to my computer. But, when I try to start it I get this screen
and then nothing happens. Any ideas...?
That dialog is checking for updates. My best guess is that you have an unhandled exception that occurs on application startup, which causes your app to crash.
For WPF, you will want to add handlers to both of these events:
AppDomain.CurrentDomain.UnhandledException
Application.Current.DispatcherUnhandledException
I usually attach to them in my application class's OnStartup method. In the event handlers, I would then log the exception, so I can look at what is failing in production.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I've seen some applications that create virtual desktops. I want to create one.
However, I do not know how you would do this, or even it it is possible.
How do I create a virtual desktop/monitor in C#?
You need to use CreateDesktop function in order to create full functional dekstop on windows os:
Creates a new desktop, associates it with the current window station
of the calling process, and assigns it to the calling thread. The
calling process must have an associated window station, either
assigned by the system at process creation time or set by the
SetProcessWindowStation function.
Would invite your attention also on interesting article from CodeProject:
Desktop Switching
In general multidektop environment already exists in Windows Os for many years, but never has been "visible" via any multi-dektop application implemented by MS itself.
For some reason MS never, as much as I'm aware of, implemented multidesktop app.
If I'm not mistaken, beginning even from WindowsNT familly OSes, you already have a second desktop. When you press Ctrl+Alt+Del the screen that appears, in reality, is on another, fully functional, windows desktop.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I developed on console application. I finished that successfully.My requirement is,that application automatically run in weekly once. I don't know how to set automatic debug.Can you please any one help me.
When you create a Console application, you will get an executable file *.exe.
You may schedule the exe using Operating system scheduling. That way you can specify the time and interval for the application to launch itself. You can't set it to debug through visual studio.
Another way could be to create Windows Service application, but probably you don't need it. Scheduling is a much better option.
You may see this article: How to schedule a program to run automatically.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I have an application (Stand alone app) , that basically reads & writes data with UI . And i have to embed it in CD and make it auto-run.
But i have few confusions , needs your help for the same
Whether to choose Windows or web application of .Net?
Which Data Storage mechanism is preferable ?
How to handle the DB part , since app will be CD how to write the data.
Thanks
You can't run a web application from a CD. You probably want to use a Windows application.
You seem to be assuming a database, so I'd guess your storage mechanism is to use a database. Look at the data you need to store and how you need to use it, and make a decision based on that.
You can't write to a CD. You need to either write to a known location (say, the AppData folder) or ask the user to specify one in your application.
Also worth noting: you can't auto-run an application any more (since Windows 7, and I believe back-ported to Vista). The best you can do is have the auto-run dialogue include an option to run your application.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
I want to create an application which can copy the tool tip (the tool tips which are shown on the current desktop/window) if I press hot keys. So how can I track whether the current desktop having a tool tip.
First, its not possible to use the Managed.Net API to access windows in other applications so you will have to do somthing a bit different.
I guess you could use the Win32 API to enumerate windows and find those of the class Tooltip_Class32. Then you'd have to read the text on them.
You can enum windows as described on SO here and on PInvoke.net here.
If you limit to just the Tooltip_Class32 then you will only get the tool tip windows.
I'm not sure how windows contructs a tool tip. I'm guessing you can read the text from the tool tip or from some child control window by using the SendMessage API with the WM_GETTEXT message like here.
That should get you started, I've never actually done it myself but it seems feasible.