Link to home
Start Free TrialLog in
Avatar of vb9666
vb9666Flag for United States of America

asked on

Unknown Application Lag

I have the following line of code and it lags sometimes for several seconds while other times it executes quickly. Any thoughts on how to correct the problem?

Dim frmX As New ApplicationX.Form1

If I change the code to the following I get the same behavior too.

Dim frm X as ApplicationX.Form1
frmX = New ApplicationX.Form1

The issue occurs both in Visual Studio and when the application is run from the EXE.
ASKER CERTIFIED SOLUTION
Avatar of Éric Moreau
Éric Moreau
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of vb9666

ASKER

Thanks for pointing me in the right direction. I found the issue in the InitializeComponent once I figured out how to debug this by unchecking "Enable Just My Code" in Options.
Avatar of vb9666

ASKER

Thanks for the help!