Saturday, September 17, 2011

Read a single character

Module Module1

    Sub Main()

        Dim strChar As String
        Console.Write("Enter a character: ")
        strChar = Console.ReadKey.KeyChar
        'strChar = Console.ReadKey(True).KeyChar
        Console.WriteLine()
        Console.WriteLine("You just entered {0}.", strChar)


    End Sub

End Module

Every console app starts with Main

Module HelloWorld
   Sub Main( )
     System.Console.WriteLine("Hello world!")
   End Sub
End Module

Writing line of text with multiple statements.

Module Tester

   Sub Main()
      Console.Write("Welcome to ")
      Console.WriteLine("Visual Basic!")
   End Sub ' Main

End Module

Simple Visual Basic program.

Module Tester

   Sub Main()
      Console.WriteLine("Welcome to Visual Basic!")
   End Sub ' Main

End Module

How to compile and run the code in this tutorial


Go to: Start->Programs->Visual Studio.NET->Visual Studio.NET Tools-> Visual Studio.NET Command Prompt, and type:
c:\examples>vbc example1.vb.

Compile Visual Basic source code in command line

vbc /r:System.DLL /r:System.Windows.Forms.DLL /r:System.Drawing.DLL WinEvents.vb

Friday, August 26, 2011


<tr><td valign="top" align="center"><script type="text/javascript"><!--
                         google_ad_client = "pub-0033045262412134";
                         /* 300x250, created 8/24/11 */
                         google_ad_slot = "5921016194";
                         google_ad_width = 300;
                         google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></td></tr>

Explain the different parts that constitute ASP.NET application.

Content, program logic and configuration file constitute an ASP.NET application. Content files Content files include static text, images ...