Is it possible to find detect the line number on which an error occures on a form?

Code:
         ' yadda is the line number

                Try

                ... stuff

                Catch ex As Exception
                    MsgBox(ex.Message & " on line number " & yadda , MsgBoxStyle.Critical, "Run Time Error ... ")
                Finally
                    Me.Close()
                End Try
I've gotten sort of spoiled using PHP for web programming and run time errors are easy to correct because PHP returns the exact line number the error is on. Would be nice to be able to get vb.net to do this too.