How to know object and/or form name programatically?

Hello all,

I use code like this for error handling and logging.

  Exception e as RuntimeException
    Dim Log As New clsLogging
    Dim Flds() As String = array("EXCEPTION", "frmRemotes.grdRemoteStatus.DoubleClick ", Cstr( e.Type) )
    Log.AddFields Flds
    Log.LogFileAppend( Log.K_Except_App_Err)

Instead of having to type in each object things like this "frmRemotes.grdRemoteStatus.DoubleClick " how can I do this automagically?


i’d give currentmethodname a shot :stuck_out_tongue:

Thanks Norman. Will have a look at it!