471,337 Members | 1,319 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,337 software developers and data experts.

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.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.


Jul 21 '05 #1
0 883

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

11 posts views Thread by Timothy Shih | last post: by
8 posts views Thread by Pete Wittig | last post: by
1 post views Thread by CES | last post: by
9 posts views Thread by William LaMartin | last post: by
9 posts views Thread by Graham | last post: by
6 posts views Thread by Tony Johansson | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.