472,342 Members | 1,825 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,342 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 3464
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...
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...
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...
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...
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...
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...
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 =...
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...
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...
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...
0
by: concettolabs | last post by:
In today's business world, businesses are increasingly turning to PowerApps to develop custom business applications. PowerApps is a powerful tool...
0
better678
by: better678 | last post by:
Question: Discuss your understanding of the Java platform. Is the statement "Java is interpreted" correct? Answer: Java is an object-oriented...
0
by: teenabhardwaj | last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
0
by: CD Tom | last post by:
This only shows up in access runtime. When a user select a report from my report menu when they close the report they get a menu I've called Add-ins...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...

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.