I work on C#.I have an application .In this application I need to show message ,suppose in 1pm my application show “Take dinner”.In 4 pm show “Take snacks ”,Basically it’s a reminder application ,Here user set time and message,duration how long it’s become active on window .I alre开发者_开发知识库ady write this application ,But problem is User have one special requirement ,User don’t like to see the application icon on quick bar /start-->programFiles,Application just take position on registry .User when start his os it’s become active and at the exact time it’s just show the message ,after the interval duration become invisible. If have any query plz ask.Thanks in advance.
I would suggest putting the exe in the startup folder either in the Start menu under the startup folder or in the registry. The registry path is as follows:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run
That will start it when the user logs on. Then, have the application start hidden (Form.Visible = false). When it is time, make the application visible again.
I would suggest putting the exe in the startup folder either in the Start menu under the startup folder or in the registry. The registry path is as follows:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run
using System.Windows.Forms;
namespace HideWindows
{
public class HideForm : Form
{
public HideForm()
{
Opacity = 0;
ShowInTaskbar = false;
}
public new void Show()
{
Opacity = 100;
ShowInTaskbar = true;
Show(this);
}
}
}
Single Form Hide on Startup Above url help more.
Have you considered converting the application to a windows service? If you did this, you could have it run in the background automatically without any need for user interaction.
精彩评论