Blog Archives for category VB.NET

How to view line numbers in VB.NET

Remember line numbers ??? Long time ago, they were used to branch them with a ‘Go To’ statement. And it… Continue reading »

Stopping a form closing using vb.net

Quick and useful tip..   Private Sub MyForm_Closing(ByVal sender As System.Object, ByVal e As _             System.ComponentModel.CancelEventArgs) Handles MyBase.Closing Try… Continue reading »

Delegates and Events

Oh…spent lot of time trying to pass values between Parent and Child forms. It is much needed for my SoftPhone… Continue reading »

Iterating through a Dictionary Object’s Items in VB.NET

Good example for iterating through dictionary object… Dim DictObj As New Dictionary(Of Integer, String)  DictObj.Add(1, “ABC”)  DictObj.Add(2, “DEF”)  DictObj.Add(3, “GHI”) … Continue reading »

How to detect socket disconnection in .NET?

After spending few days, finally able to figure socket disconnect detection in .NET 🙂   Public Shared Function IsConnected(ByVal socket… Continue reading »