473,508 Members | 1,998 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to know the loaded Form has been loaded to finish?

yxq
Hi
When a sub-Form are loading, how to know the sub-Form has been loaded to
finish(all work end)?
I wrote the code
*********************************************
Me.Cursor = System.Windows.Forms.Cursors.WaitCursor
Private Obj-sub-Form As Form
Obj-sub-Form = New sub-Form ()
Obj-sub-Form.MdiParent = Me
Obj-sub-Form.Show()
Me.Cursor = System.Windows.Forms.Cursors.Default
*********************************************
I found the cursor has restored to default, but the sub-Form has not been
loaded to finish yet!

How to do?

Thanks
Nov 20 '05 #1
2 1830
"yxq" <ga***@163.net> schrieb
Hi
When a sub-Form are loading, how to know the sub-Form has been
loaded to
finish(all work end)?
I wrote the code
*********************************************
Me.Cursor = System.Windows.Forms.Cursors.WaitCursor
Private Obj-sub-Form As Form
Obj-sub-Form = New sub-Form ()
Obj-sub-Form.MdiParent = Me
Obj-sub-Form.Show()
Me.Cursor = System.Windows.Forms.Cursors.Default
*********************************************
I found the cursor has restored to default, but the sub-Form has not
been loaded to finish yet!

How to do?

It must have been loaded because the load event is fired before the form is
shown. The form is not shown before the load event (/onload) has finished.

What makes you think it has not been loaeded?
--
Armin

Nov 20 '05 #2
* "yxq" <ga***@163.net> scripsit:
When a sub-Form are loading, how to know the sub-Form has been loaded to
finish(all work end)?
I wrote the code
*********************************************
Me.Cursor = System.Windows.Forms.Cursors.WaitCursor
Private Obj-sub-Form As Form
Obj-sub-Form = New sub-Form ()
Obj-sub-Form.MdiParent = Me
Obj-sub-Form.Show()
Me.Cursor = System.Windows.Forms.Cursors.Default
*********************************************
I found the cursor has restored to default, but the sub-Form has not been
loaded to finish yet!


I am not able to repro that. Why not change the cursor in the child
form's 'Load' event handler?

\\\
.... Sub Form1_Load(...) ...
...
Me.Show()
Me.MdiParent.Cursor = ...
End Sub
///

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Nov 20 '05 #3

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

Similar topics

0
3621
by: Amy | last post by:
When accessing my JSP I get the following error: org.apache.jasper.JasperException: Missing message for key button.next Can anyone tell me what the problem is? I have tried to figure this out...
1
2242
by: Mike | last post by:
Hi, I'm new to ASP and can't get this form to work. It's a simple page that draws a calendar for the current month and then you can select a new month and it draws the new calendar. It works...
2
7021
by: Andy Goldstein | last post by:
I have a table where all the TRs have an onClick handler registered. One (and only one) of the rows has 2 text input boxes, where each textbox has an onChange handler registered. Both the onClick...
2
22641
by: David N | last post by:
Hi All, The OnLoad() event is invoked automatically when a form is being loaded. Do we have another event that is invoked automatically after a form has completed loading? Thanks.
2
4661
by: crusell | last post by:
I'm having some problem with my Visual Studio.NET 2003 (.NET 1.1 SP1) install. I am unable to use the web forms designer with any aspx file whose form class inherits from a base class. I'm...
3
1578
by: ree321 | last post by:
Is there a way to get an ASP.net Function to run after the page has been loaded onto the client I need to run a function that will fetch the folder sizes of a whole drive. As you could guess...
5
2686
by: M Skabialka | last post by:
I am creating my first Visual Studio project, an inventory database. I have created a form and used written directions to add data from a table to the form using table adapters, data sets, etc. ...
5
1847
by: | last post by:
I am having problems with casting or converting a class to to an interface from which it derives. I'm certain that it's due to how it's being loaded, but I'm not sure how to get past the problem....
4
2219
by: Andrew Poulos | last post by:
I have a form that looks something like the following: <form"> <div id="pg0"> <!-- more HTML here --> <input type="text" name="f0_0" > </div> <div id="pg1" style="display:none;"> <!-- more...
0
7227
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
7331
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
7391
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...
1
7054
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
5633
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3204
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3188
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
768
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
424
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.