mpappert Posted October 25, 2002 Posted October 25, 2002 I'm not sure if there is a solution to this or not, but I find that VB.NET executes slower than VB6! I've created a form (in both VB6 and VB.NET) with the following components: - Two Text Fields (txtUsername and txtPassword) - Two Labels (lblUsername and lblPassword) - One Label (lblCopyright) The form also has it's background property set to a GIF image (13kb). Additionally, the text fields are not VB.NET native they are Infragistics UltraTextEditor fields with the "etched style" (but I've compared the execution time with the standard VB.NET button control and noticed no change in speed). The BackColor property is set to '0 - Transparent' on all labels. When I run this form from VB6 the screen pops up without any delays, however, when I run this form from VB.NET the screen "paints" on and displays in about 1.5 seconds. Is there something I should be doing to make this form "load" faster? TIA! M. Quote
*Experts* Bucky Posted October 26, 2002 *Experts* Posted October 26, 2002 It may be the way VB.NET is debugged, compared to VB6. Every time you debug the application, it has to compile into an exe, attatch a debugger to it, then run it. Is this the slowdown you're talking about, when the app is being compiled? Or is it after the form is shown? Quote "Being grown up isn't half as fun as growing up These are the best days of our lives" -The Ataris, In This Diary
mpappert Posted October 26, 2002 Author Posted October 26, 2002 Hi Bucky, The delay is the actual display of the screen (post-compilation). The form loads and displays instantaneously when compiled under VB6, however, in VB.NET the form loads and the controls seem to paint themselves on the form one by one. It starts out as a blackened area where the control is to be displayed and then the control appears to be filled in. It takes about 1 second or so for it to appear in full. I know it's not really a bug or anything, it's purely aesthetic, but it drives me crazy! LOL ... At first I thought it was because I'm learning .NET and maybe I forgot to code something, but it seems that no matter what I do it still has this "painted" effect. Thanks! M. Quote
*Gurus* Derek Stone Posted October 26, 2002 *Gurus* Posted October 26, 2002 Make sure you have the build configuration set to release. Quote Posting Guidelines
mpappert Posted October 26, 2002 Author Posted October 26, 2002 I've tried it both in release and debug modes .. same result?! Quote
*Gurus* divil Posted October 27, 2002 *Gurus* Posted October 27, 2002 Is that Infragistics control an ActiveX control or Windows Forms Control? Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
mpappert Posted October 27, 2002 Author Posted October 27, 2002 It's a Windows Form Control (part of NetAdvantage 2.0) ... M. Quote
Moderators Robby Posted October 27, 2002 Moderators Posted October 27, 2002 Is it just as slow when you run the exe from the Release Bin. (without the IDE) Quote Visit...Bassic Software
mpappert Posted October 27, 2002 Author Posted October 27, 2002 Yep ... I've created a shortcut to it from my desktop ... I've done some more testing and it seems that depending on the controls I use the form is faster ... If I use a transparent label in conjunction with the Infragistics UltraTextBox .. it paints slow .. if I force the colour of the labels and use regular textboxes it's a tad bit faster .. but still nowhere near as fast as VB6 ... Maybe I should just look for a really good calendar control for VB6, but I was really hoping to use the new Janus Schedule Component ... it looks really slick and is EXACTLY what I need (as far as functionality) ... But I really like VB.NET, it has lots of cool new features ... BTW - Thanks everyone for your help .. it's much appreciated!!! M. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.