I'm writing a windows service that periodically goes out to a SQL table and checks it for new records. I connect ok and fill the dataset ok, but how do I clear the dataset once I'm done with it? What's happening is that evertime the service goes to check the table, it fills the dataset...
Problem solved. Apparently the timer control is geared to work with windows forms and does not work correctly with windows services, so I use the system.timer instead.
I'm trying to write a windows service routine in VB.NET and I'm using code taken straight from several examples that I've gotten from the web. The problem is that I can compile and install the service ok--it shows up in the services window from the admin tools, but it doesn't seem to be doing...
I'm writing a program to send an email internally. Here is the code I've got:
Dim Smtp As SmtpMail
Smtp.SmtpServer = "mail.co.navajo.az.us"
Dim Msg As MailMessage = New MailMessage
Msg.To = "james.williams@co.navajo.az.us"
Msg.From = "james.williams@co.navajo.az.us"
Msg.Body = "This is a...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.