473,404 Members | 2,114 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

VB .NET Form Question

When I add controls to a form and run the .exe under Win XP, the outline of the form displays first and then the controls on the form. The .exe works fine but the initial show looks like the computer is running slow because the form does not show all at once. It shows one control at a time. Yes, I do have functions in the form_load event but even if I remove these functions, the same slow looking show occurs. This did not occur in VB6 unless the PC was running very slow. Is this characteristic of VB .NET? Is there a way to force the form to display all at once? Thanks very much for your help.
Marc
Jul 21 '05 #1
4 3519
Hi Marc,

Normaly is the form painted after the load event, so show some code you have
in that?

Cor
When I add controls to a form and run the .exe under Win XP, the outline of the form displays first and then the controls on the form. The .exe
works fine but the initial show looks like the computer is running slow
because the form does not show all at once. It shows one control at a time.
Yes, I do have functions in the form_load event but even if I remove these
functions, the same slow looking show occurs. This did not occur in VB6
unless the PC was running very slow. Is this characteristic of VB .NET? Is
there a way to force the form to display all at once? Thanks very much for
your help. Marc

Jul 21 '05 #2
Hi Marc,

Normaly is the form painted after the load event, so show some code you have
in that?

Cor
When I add controls to a form and run the .exe under Win XP, the outline of the form displays first and then the controls on the form. The .exe
works fine but the initial show looks like the computer is running slow
because the form does not show all at once. It shows one control at a time.
Yes, I do have functions in the form_load event but even if I remove these
functions, the same slow looking show occurs. This did not occur in VB6
unless the PC was running very slow. Is this characteristic of VB .NET? Is
there a way to force the form to display all at once? Thanks very much for
your help. Marc

Jul 21 '05 #3
Hi Marc,

Dit you have that code as well in your VB6 application where you wrote about
that it was not so slow?

Cor
Here is the code in the form's paint event:
Dim DrawPen1 As New Pen(Color.Black, 4)
e.Graphics.DrawLine(DrawPen1, 0, 54, 400, 54)
e.Graphics.DrawLine(DrawPen1, 0, 84, 400, 84)
e.Graphics.DrawLine(DrawPen1, 0, 232, 400, 232)
e.Graphics.DrawLine(DrawPen1, 0, InitialFormHeight - 34, 400, InitialFormHeight - 34)
Hi Marc,

Normaly is the form painted after the load event, so show some code you have in that?

Cor
When I add controls to a form and run the .exe under Win XP, the
outline of the form displays first and then the controls on the form. The .exe
works fine but the initial show looks like the computer is running slow
because the form does not show all at once. It shows one control at a time. Yes, I do have functions in the form_load event but even if I remove these functions, the same slow looking show occurs. This did not occur in VB6
unless the PC was running very slow. Is this characteristic of VB .NET? Is there a way to force the form to display all at once? Thanks very much for your help.
Marc


Jul 21 '05 #4
Hi Marc,

Before I reinvent the wheel, there was a short while ago a discussion about
this in the newsgroup

microsoft.public.dotnet.languages.vb

http://www.google.com/gr************...TNGP11.phx.gbl
In my opinion a better newsgroup for question like this than this general
one.

So maybe next time you can ask this question better there.

Cor
No, I used the VB6 line control. I have not found an equivalent control in .NET. I removed the Paint code and the form loads a lot faster. I did
not think using Paint would slow down the display. Is there any alternative
to using paint to add a line? Thanks for your help.

"Cor Ligthert" wrote:
Hi Marc,

Dit you have that code as well in your VB6 application where you wrote about that it was not so slow?

Cor
Here is the code in the form's paint event:
Dim DrawPen1 As New Pen(Color.Black, 4)
e.Graphics.DrawLine(DrawPen1, 0, 54, 400, 54)
e.Graphics.DrawLine(DrawPen1, 0, 84, 400, 84)
e.Graphics.DrawLine(DrawPen1, 0, 232, 400, 232)
e.Graphics.DrawLine(DrawPen1, 0, InitialFormHeight - 34, 400,

InitialFormHeight - 34)

> Hi Marc,
>
> Normaly is the form painted after the load event, so show some code you
have
> in that?
>
> Cor
>
> > When I add controls to a form and run the .exe under Win XP, the

outline
> of the form displays first and then the controls on the form. The
..exe > works fine but the initial show looks like the computer is running slow > because the form does not show all at once. It shows one control at a time.
> Yes, I do have functions in the form_load event but even if I remove

these
> functions, the same slow looking show occurs. This did not occur in
VB6 > unless the PC was running very slow. Is this characteristic of VB

..NET? Is
> there a way to force the form to display all at once? Thanks very
much for
> your help.
> > Marc
>
>
>


Jul 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

16
by: Philippe C. Martin | last post by:
Hi, I am trying to change the data in a form field from python. The following code does not crash but has no effect as if "form" is just a copy of the original html form. Must I recreate the...
25
by: Lyn | last post by:
Hi, I am working on a genealogy form. The only table (so far) lists everybody in the family, one record per person. Each record has an autonum ID. The parent form (frmMainForm) displays the...
11
by: Jozef | last post by:
I have some old code that I use from the Access 95 Developers handbook. The code works very well, with the exception that it doesn't seem to recognize wide screens, and sizes tab controls so that...
15
by: http://www.visual-basic-data-mining.net/forum | last post by:
Does anyone have any idea how to transferring data from TextBox1 in form1 to textBox2 in form2..... That means after i fill in any data in textBox1 and click Next button... It will bring me to...
3
by: Kaur | last post by:
Hi, I would appriceate any help to correct the code error that I am getting for the onclick event of a cmd button. I have two forms. Main Form "frmQuestion" and form 2 "SfrmQuestion"....
27
by: Chris | last post by:
Hi, I have a form for uploading documents and inserting the data into a mysql db. I would like to validate the form. I have tried a couple of Javascript form validation functions, but it...
1
by: MrHelpMe | last post by:
Hello experts, I need a hand. On my asp submit page I have the following code: for i = 1 to 5 ' 5 question form' Question = Request.Form("Q" & i) Answer = Request.Form("A" & i) Comment ...
26
by: Jerim79 | last post by:
I need to create a form that takes a number that the user enters, and duplicates a question the number of times the user entered. For instance, if the customer enters 5 on the first page, when...
6
by: Greg Strong | last post by:
Hello All, Is is possible to use an ADO recordset to populate an unbound continuous Subform? I've done some Googling without much luck, so this maybe impossible, but let me try to explain...
6
by: smk17 | last post by:
I've spent the last few minutes searching for this question and I found an answer, but it wasn't quite what the client wanted. I have a simple online form where the user needs to fill out five...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.