Archive for May, 2007

Background process in vb.net

This month i started a new software, it’s a SEO Analisys Tool, and i needed to threat multithreading and background operations handling. Giving a look inside the .Net Framework i found a very interesting class, the BackgroundWorker class. First of all i have to tell you where it’s placed, in most articles on the web they forget to tell the reader where he can find it. It’s placed into the System.ComponentModel namespace.
The BackgroundWorker class is a really simple to use class, it gives you the opportunity to handle multitasking in a very easy way.

Basic informations about the class

The BackgroundWorker class exposes just few events to control the status of the process an to notify what’s going on.

  1. DoWork (in this you’ll write all the code to execute)
  2. ProgressChanged (raised when the thread execution process changes)
  3. RunWorkerCompleted (when the thread job is finished)

All that you have to know is

  1. On the top of your code page include the System.ComponentModel namespace (imports System.ComponentModel)
  2. In the DoWork event write your code loop and remember to throw the ProgressChanged event if you need to handle it (RaiseEvent ProgressChanged(me)
  3. Handle the process cancellation in the DoWork loop checking for CancellationPending flag (if bgWork.CancellationPending then e.cancel)
  4. if you need the thread cancellation support you have to add a line of code to the New sub (bgWork.WorkerSupportsCancellation = true)

I know it seems too easy to be true but it’s really so…

Here you can find a sample piece of code to get download progress in vb.net


TAGS: Asp.net, dotnet, code snippet, seo, search engine optimization, visual studio.net, sample code, c#, vb.net

SEOMax the FREE SEO SOFTWARE

Hi all, i’m developing a FREE SEO SOFTWARE for Windows platform and .NET 2.0 Framework.
Feel free to download it from the SEOMAX page on this site.

Comments and proposal are always welcome.

SEOMax Beta 1

Download SEOMax

Click here to watch the “in action” video or download the SEOMAX Beta Release 1.0


TAGS: Asp.net, dotnet, code snippet, seo, search engine optimization, visual studio.net, sample code, c#, vb.net

SEO World Championship is over

The Seo World Championship is over!!!
I ranked in the TOP 10 sites, it’s a great result. I’m 8th in the world and 1st in Italy, it’s the best I could ever wish. It has been really hard to compete with skilled SEOs and i had to learn almost everything about SEO techniques and search engine theories.

Here is the latest scoreboard for May 1st (the ending date was April 30)

leaderboard 

The two deleted sites are hosted on Blogspot which can’t compete to the contest because already indexed in search engine and registered before the start date.

Well done! Meet you next year maybe :)


TAGS: Asp.net, dotnet, code snippet, seo, search engine optimization, visual studio.net, sample code, c#, vb.net