| View previous topic :: View next topic |
| Author |
Message |
david
Joined: 27 Aug 2007 Posts: 14
|
Posted: Wed Jul 16, 2008 10:09 am Post subject: MessageBox.Show Method is not working in windows service |
|
|
hi experts,
i am working with windows service. in this service i have display Message Box. but i am not getting MessageBox.Show() in my application. for this which namespace i need to refer?
Last edited by david on Fri Aug 01, 2008 5:35 am; edited 2 times in total |
|
| Back to top |
|
 |
manoj
Joined: 21 Aug 2007 Posts: 102
|
Posted: Wed Jul 16, 2008 10:15 am Post subject: |
|
|
Hi david,
to get MessageBox.Show() method you need to import the following name space. Using System.Windows.Forms;
if you not found the name space in global deceleration then
go to
Add Reference option in Project menu , then select .NET selection option. in that you will have Windows.Forms library reference . select it and press ok button.
now you will get MessageBox.Show() method. i hope this will helps you.
regards,
manoj |
|
| Back to top |
|
 |
mohsin_khan01
Joined: 18 Aug 2008 Posts: 9 Location: India/Mumbai
|
Posted: Sat Aug 30, 2008 11:38 am Post subject: |
|
|
Primary use of windows service is to schedule some functionalities to run at a particular intervals with the help of timer.
If you want to log messages then use logging techniques
eg. write to text files or event logs...
Mohsin Khan  |
|
| Back to top |
|
 |
Teena
Joined: 28 Aug 2007 Posts: 138
|
Posted: Tue Sep 16, 2008 3:18 am Post subject: |
|
|
Thanks for your valid response, it got working fine now....
regards,
teena |
|
| Back to top |
|
 |
|