Windows Embedded NavReady 2009 OS

June 17, 2008

Microsoft launches its first Embedded Operating System Specifically for Portable Navigation Device (PND) Manufacturers.

Sending e-mail using smtp mail(VB.Net)

May 2, 2008


In Dotnet, System.Net.Mail namespace provides the classes for sending e-mails. The code given below is the sample.
Imports System
Imports System.Net.Mail
Public Class Form1
Private Sub btnSend_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSend.Click


Dim objMailMsg As MailMessage = New MailMessage(txtFrom.Text, txtTo.Text)

objMailMsg.Subject = txtSubject.Text
objMailMsg.Body = txtBody.Text
objMailMsg.Priority = MailPriority.High
objMailMsg.IsBodyHtml = True

Dim objSMTPClient As Net.Mail.SmtpClient = New Net.Mail.SmtpClient()

objSMTPClient.Host = “your host address”

Catch ex As Exception
Throw ex
End Try

End Sub

Private Sub btnClear_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnClear.Click
End Sub

End Class

 For the above code to work, Create a new VB.Net windows application project, and design a form with From, To, Subject, Body fields And Send, Clear  Buttons.

Most importantly, Dont forget to add the System.Web.dll reference (right click on project -> Add Reference -> Browse for the System.Web.dll reference.

Happy Working. See you later…

Till then,



Example : C# 3.0 new features

April 24, 2008


using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;namespace Example.cSharp3Dot0
class Program

static void Main(string[] args)
List Languages = new List { “C#”, “VB”, “VC++” }; // —-> Collection Initializer

var languageQuery = //—-> Implicitly typed local variables
from one in Languages
where one == “VC++”
select new { one }; //—-> Anonymous types.
foreach (var name in languageQuery)
Console.WriteLine(“Its” +;
Console.WriteLine(“Its” +;

public static class myClass
public static string getFirstTwoCharacters(this System.String st) // —-> Extension methods
return st.Substring(0, 2);



April 24, 2008


Welcome to my techspace.

I intend to update this blog on daily basis.  Here I am gonna blog all my ideas, experiences and problems. Feel free to ponder your thoughts on the same.