A
academic
Is there an expected difference between the following?
Stepping seems to show that the first way
GetContextMenuControlWindowsExplorer
does exhibit the correct data in this sub
But not in the calling routine.
The second way seems to work OK
Public ReadOnly Property GetContextMenuControlWindowsExplorer() As
ContextMenuStrip
Get
Dim tmp As ContextMenuStrip = New ContextMenuStrip
..snip
GetContextMenuControlWindowsExplorer = tmp THIS
Return tmp
OR THIS
End Get
End Property
Stepping seems to show that the first way
GetContextMenuControlWindowsExplorer
does exhibit the correct data in this sub
But not in the calling routine.
The second way seems to work OK
Public ReadOnly Property GetContextMenuControlWindowsExplorer() As
ContextMenuStrip
Get
Dim tmp As ContextMenuStrip = New ContextMenuStrip
..snip
GetContextMenuControlWindowsExplorer = tmp THIS
Return tmp
OR THIS
End Get
End Property