Archive for July, 2007

VB.NET built-in functions

I’m always struggling to finding built-in functions in vb.net, that does these small things: roudning up, subtracting dates, formatting dates, math-functions etc. But, now I’ve found this great website:

http://msconline.maconstate.edu/tutorials/VBNET/

It might not have all the functions – but it has the ones I need the most. Anyone has other good links?

Technorati Tags:

Comments

Windows Service – adding timer

I have done it before – and I did again today… Used about an hour trying to figure out, why a service for Windows that I created using Visual Studio 2005 did’nt work at all. It started great, restartet – all was perfect – but it did’nt tick.

Until I finally found out the hard way, that you have to add a System.Timers.Timer timer instead of the Windows.Forms.Timer. I actually followed a guide somewhere on the Internet saying that I could just drag-n-drop the Timer from Components in the Service Project. But, it did’nt really help.

But what did help was adding this as the first line in the class:

Friend WithEvents tmrCheckShows As New System.Timers.Timer

And now the service is ticking – or elapsing.

Comments

Protecting your blog from spam

A couple of months ago I installed a new plugin, to stop some of the spam in my blog. Most of all because Bad Behavior (the version I was running) could not run together with using the new version of Windows Live Writer.

Instead I installed http://wordpress.org/extend/plugins/cryptographp/ - which adds a captcha to be entered when users want to comment.

Technorati Tags: ,

Comments