Click here to Skip to main content
15,902,777 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Comments in editor for self made classes Pin
Johan Hakkesteegt1-Jul-07 19:58
Johan Hakkesteegt1-Jul-07 19:58 
Questionget file Extension Pin
Rupesh Kumar Swami28-Jun-07 23:26
Rupesh Kumar Swami28-Jun-07 23:26 
AnswerRe: get file Extension Pin
Sonia Gupta28-Jun-07 23:36
Sonia Gupta28-Jun-07 23:36 
GeneralRe: get file Extension Pin
Rupesh Kumar Swami28-Jun-07 23:45
Rupesh Kumar Swami28-Jun-07 23:45 
GeneralRe: get file Extension Pin
Sonia Gupta29-Jun-07 2:38
Sonia Gupta29-Jun-07 2:38 
QuestionWindow Services Pin
Navneet Hegde28-Jun-07 23:01
Navneet Hegde28-Jun-07 23:01 
AnswerRe: Window Services Pin
Sonia Gupta28-Jun-07 23:39
Sonia Gupta28-Jun-07 23:39 
GeneralRe: Window Services Pin
Navneet Hegde29-Jun-07 0:06
Navneet Hegde29-Jun-07 0:06 
Hi Sonia,

Namespace AlertService
{
public partial class AlertService : ServiceBase
{
public AlertService()
{
InitializeComponent();
}

protected override void OnStart(string[] args)
{
// TODO: Add code here to start your service.

timer1.Enabled = true;

}

protected override void OnStop()
{
// TODO: Add code here to perform any tear-down necessary to stop your service.
timer1.Enabled = false ;
}

protected override void OnPause()
{
timer1.Enabled = false;
//base.OnPause();
}

protected override void OnContinue()
{
timer1.Enabled = true;
//base.OnContinue();
}

private void timer1_Tick(object sender, EventArgs e)
{
eventLog1.WriteEntry("Hai it's now " + DateTime.Now.ToString());
}



}
}



This is what i have coded , Installation is working well with custom Event log , Start , Stop Pause , Continue is Logged but Only the Timer is not working

Regards & Wishes
Navneet Hegde
Nashik(City Of Pilgrimage)

Develop2Program & Program2Develop

GeneralRe: Window Services Pin
aamironline29-Jun-07 1:44
aamironline29-Jun-07 1:44 
GeneralRe: Window Services Pin
Navneet Hegde29-Jun-07 2:59
Navneet Hegde29-Jun-07 2:59 
GeneralRe: Window Services Pin
Dave Kreskowiak29-Jun-07 3:58
mveDave Kreskowiak29-Jun-07 3:58 
Questionhow can i change/append the text in footer of word document Pin
koolprasad200328-Jun-07 22:44
professionalkoolprasad200328-Jun-07 22:44 
AnswerRe: how can i change/append the text in footer of word document Pin
kubben29-Jun-07 2:03
kubben29-Jun-07 2:03 
QuestionNeed a Help plz! Pin
Kumar!28-Jun-07 21:40
Kumar!28-Jun-07 21:40 
AnswerRe: Need a Help plz! Pin
Navneet Hegde29-Jun-07 0:12
Navneet Hegde29-Jun-07 0:12 
GeneralRe: Need a Help plz! Pin
Kumar!29-Jun-07 2:49
Kumar!29-Jun-07 2:49 
AnswerRe: Need a Help plz! Pin
Christian Graus29-Jun-07 0:37
protectorChristian Graus29-Jun-07 0:37 
GeneralRe: Need a Help plz! Pin
Kumar!29-Jun-07 2:47
Kumar!29-Jun-07 2:47 
AnswerRe: Need a Help plz! Pin
Psycho-*Coder*-Extreme29-Jun-07 3:01
Psycho-*Coder*-Extreme29-Jun-07 3:01 
GeneralRe: Need a Help plz! Pin
Kumar!29-Jun-07 3:13
Kumar!29-Jun-07 3:13 
AnswerThe rules... Pin
leckey29-Jun-07 3:26
leckey29-Jun-07 3:26 
QuestionChange of property attributes during Run-Time (e.g. Brwosable) Pin
olgoe28-Jun-07 21:32
olgoe28-Jun-07 21:32 
AnswerRe: Change of property attributes during Run-Time (e.g. Brwosable) Pin
aamironline29-Jun-07 1:47
aamironline29-Jun-07 1:47 
GeneralRe: Change of property attributes during Run-Time (e.g. Brwosable) Pin
olgoe29-Jun-07 11:37
olgoe29-Jun-07 11:37 
Questiondsn creation and deletion program in vb.net 2005 Pin
Sonia Gupta28-Jun-07 19:27
Sonia Gupta28-Jun-07 19:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.