المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Windows Service Application



C# Programming
03-30-2009, 08:55 AM
Dear All,
I have created a very basic and simple windows service application using c# in vs 2005.
i have override the "onstart" method and i want that when my service starts a message should appear just to confirm that service starts running.
the service starts successfully but no message appears to me. i have tried to write that message to a file but still no file is created.
this the code bellow
protected override void OnStart(string[] args)
{
System.Windows.Forms.MessageBox.Show("Service is start...");
}
i have googled and used topic in msdn to create window service application.
why the message box does not appear when i am starting the service?