11/26/2009

.NET 2008

Q : How to auto start service after installing?

A :

Private Sub ServiceInstaller_AfterInstall(ByVal sender As System.Object, ByVal e As System.Configuration.Install.InstallEventArgs) Handles ServiceInstaller.AfterInstall

Dim controller = New ServiceController("SERVICE NAME")
controller.Start()

End Sub

Q: How to get Next Weekday date ?
A :
DateAdd("ww", 1, Now)

"yyyy" Year
"q" Quarter
"m" Month
"y" Day of year
"d" Day
"w" Weekday
"ww" Week
"h" Hour
"n" Minute
"s" Second

0 Comments:

Post a Comment

<< Home

Tell Me !

Powered by Blogger

Julian's Diary | What he happened | He wanna to share | Where he was | He likes | His flavours | 12 DECEMBER | How he did or did not