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

Override ToString Method in VB.Net

This is a Example for Override ToString Method in VB.Net

Public Class Class1
    Public idx As Integer
    Public Overrides Function ToString() As String
        Return Me.idx.ToString() + " " + "VB.Net"
    End Function
End Class
Paste this following code in your main form  
        Dim cl As Class1 = New Class1
        cl.idx = 100
        MessageBox.Show(cl.ToString())
Result:
100 VB.Net