T
Tom Edelbrok
I posted this accidentally to dotnet.general, but it is a VB.NET problem, so
here it is again ...
With VB.NET in VS 2003 I am using "Sub Main()" as my startup object, and
from within Sub Main() I use "Application.Run(MyMainForm)". Essentially I am
starting my application and then displaying the form, rather than setting
the form as the startup object. This works great except for one major
problem ... I can't access any of the form's controls while in the debugger.
There is no problem accessing local variables in a procedure, but when I try
to access a label control on the form my machine hangs.
What causes this problem and how can I get around it?
It is very consistent - I can always display anything I want at a
breakpoint, except controls on the form. If I try to display them in the
immediate window my machine hangs.
Thanks,
Tom
here it is again ...
With VB.NET in VS 2003 I am using "Sub Main()" as my startup object, and
from within Sub Main() I use "Application.Run(MyMainForm)". Essentially I am
starting my application and then displaying the form, rather than setting
the form as the startup object. This works great except for one major
problem ... I can't access any of the form's controls while in the debugger.
There is no problem accessing local variables in a procedure, but when I try
to access a label control on the form my machine hangs.
What causes this problem and how can I get around it?
It is very consistent - I can always display anything I want at a
breakpoint, except controls on the form. If I try to display them in the
immediate window my machine hangs.
Thanks,
Tom