T
Trivender Singh
I am trying to run the following piece of code.
Dim objCommandBars As CommandBars
Dim objStandardBar As CommandBar
Dim WithEvents mobjExplorer As Outlook.ExplorerClass
mobjExplorer = CType(mobjOutLookApp.ActiveExplorer,
Outlook.ExplorerClass)
objCommandBars = mobjExplorer.CommandBars
objStandardBar = objCommandBars.Item(8) <-- this statement generates
an exception of the type - System.ExecutionEngineException which I am
not even able to catch.
But when I try to run the same statement in the immediate window it
executes without any problem.
Has anybody experienced a similar problem before in VB.NET
regards
Trivender Singh
Dim objCommandBars As CommandBars
Dim objStandardBar As CommandBar
Dim WithEvents mobjExplorer As Outlook.ExplorerClass
mobjExplorer = CType(mobjOutLookApp.ActiveExplorer,
Outlook.ExplorerClass)
objCommandBars = mobjExplorer.CommandBars
objStandardBar = objCommandBars.Item(8) <-- this statement generates
an exception of the type - System.ExecutionEngineException which I am
not even able to catch.
But when I try to run the same statement in the immediate window it
executes without any problem.
Has anybody experienced a similar problem before in VB.NET
regards
Trivender Singh