Application.Run problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Tom Edelbrok

    #1

    Application.Run problem

    With VB.NET in VS 2003 I am using "Sub Main()" as my startup object, and
    from within Sub Main() I use "Application.Ru n(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


Working...