h1.post-title { color:orange; font-family:verdana,Arial; font-weight:bold; padding-bottom:5px; text-shadow:#64665b 0px 1px 1px; font-size:32px; } -->

Pages

Add Reference in VB.Net

Go To Project Property
Click "Reference"
Click  "Add"
Select from "Add Reference"
Select "Import Namespace" for your project

Write only Read Property in VB.Net

Write only Read Property in VB.Net
Private _EmpId As String
        Public ReadOnly Property EmpId() As String
            Get
                Return _EmpId
            End Get
        End Property

Get Random Number in VB.net

using Rnd

Run a DOS Command in VB.Net

Run a DOS Command in VB.Net

use Shell Keyword

Shell("cmd.exe"<Command>)

Formater in VB.Net

Formater in VB.Net

            it is an object that is responsible for encoding and serializing data into message on one end and
decoding and Deserializing data into message on another end

New Features in VB 10

New Features in VB 10


  • Multiple Line Statement Lambdas
  • sub Lambdas
  • Auto Implementation Property
  • Collection Initialize
  • Arrya Literals

Keyword used for Abstract class and Abstract method in VB.Net

Keyword used for Abstract class in VB.Net

MustInherit keyword

Keyword used for Abstract Method in VB.Net

MustOverride Keyword

Keyword used for hiding method from Base Class in VB.net

Keyword used for hiding method from  Base Class in VB.net

Shadow Keyword is used to hide a method from a Base Class.

Delete files in VB.Net

Delete files in VB.Net

Kill(<File Path>)

Kill(D:\Lakshmi.txt)

Create XPS File in VB.Net

Select .Net 3.5 Framework

    Using prn As New PrintDocument
            With prn
                .PrinterSettings.PrinterName = "Microsoft XPS Document Writer"
                .DefaultPageSettings.PaperSize = New PaperSize("Legal", 850, 1400)

                If My.Computer.FileSystem.FileExists(xpsfile) Then My.Computer.FileSystem.DeleteFile(xpsfile)
                .DefaultPageSettings.PrinterSettings.PrintToFile = True
                .DefaultPageSettings.PrinterSettings.PrintFileName = xpsfile
                .Print()
            End With
        End Using

Add Reference
ReachFramework
WindowBase