473,406 Members | 2,745 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,406 software developers and data experts.

Loading UserControl on a ShowDialog Form sequence strange

I have a little more info about this problem I can't seem to solve!

I know it'll take a minute to study the lising but if you like to sove
puzzles there is one there.

I have a Form (FV&C) containing a userconrtrol (CF&E)

I do a ShowDialog for the form and the form's Load event calls a method of
the UserControl.

I peppered the code with writes and the following resulted.

Note that for the fist time, the usercontrol's Load event runs before the
form's Load event starts.

But, notice at the bottom of the list that for the second time, the
usercontrol's Load event runs after the form's Load event ends.

And notice the Visible properties!

Does this make sense to you?

Any suggestions as to what is going on?

It just occured to me that I never set a return dialog value. Must I?

FV&C New Staring
CF&E New Staring
CF&E New Ending
FV&C New Ending
*******Call FV&C method
*******Do FV&C.ShowDialog
CF&E Load Staring. Visible = True
CF&E Load Ending
FV&C Load Staring. Visible = True
FV&C Calling method in CF&E
FV&C Load Ending
FV&C Button Clicked
FV&C Button Routine Ending do Me.Close to close FV&C
FV&C Closing
FV&C Closed
*******After FV&C.ShowDialog Returned
*******
*******Call FV&C method
*******Do FV&C.ShowDialog
FV&C Load Staring. Visible = False
FV&C Calling method in CF&E
FV&C Load Ending
CF&E Load Staring. Visible = True
FV&C Button Clicked
FV&C Button Routine Ending do Me.Close to close FV&C
FV&C Closing
FV&C Closed
*******After FV&C.ShowDialog Returned

Dec 20 '05 #1
2 3023
Developer,

The only result from resending questions in the same way will mostly be as I
have seen, is that your questionms are ignored after a while.

You can reply better your question rephrased in the same thread. You get
mostly no answers if the ones who read them don't understand them and leave
them for somebody else who understands them maybe better.

Just my thought,

Cor
Dec 20 '05 #2
Sometimes I get a different view on a topic as I work it and feel the
subject no longer reflects the question.

I assume some decide to read or not read a question by reading the subject.

Using an old thread does nothing to reduce the bandwidth used.

But thanks for letting me know how you view it.
Thanks
"Cor Ligthert [MVP]" <no************@planet.nl> wrote in message
news:eG**************@TK2MSFTNGP09.phx.gbl...
Developer,

The only result from resending questions in the same way will mostly be as
I have seen, is that your questionms are ignored after a while.

You can reply better your question rephrased in the same thread. You get
mostly no answers if the ones who read them don't understand them and
leave them for somebody else who understands them maybe better.

Just my thought,

Cor

Jan 7 '06 #3

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

Similar topics

1
by: Jason | last post by:
Hi I would like a user control/form that can be either called as a dialog (ShowDialog) or embedded in another form (usercontrol). preferably, my dialog/usercontrol accepts an argument that...
1
by: Sundaresan | last post by:
I've a form where I load two user controls dynamically. User Control-1 has a no.of dropdowns and based on the selection I typically populate a datagrid in the user control-2, Also the I could...
0
by: Joe | last post by:
I've a web form that inherits from a BasePage. There is a user control on the web form. Does anyone thinks it's a problem if I've my BasePage loading a user control and my web form loading a...
2
by: Rob | last post by:
I was working on a project and everything was going fine, then all of a sudden the form set as my startup object stopped loading. I tried setting some others as the startup object, and some of my...
5
by: **Developer** | last post by:
What does SomeForm.ShowDialog(Me) do is Me is a UserControl. The Help describes what happens if Me is a form but I wonder if "Window" would be a more accurate term then "Form". That is, will...
2
by: sonu | last post by:
Hi all, I have a problem regarding use of a usercontrol in .NET. My usercontrol consists of two listviews which I say as source and destination lisviews which contains the files and folders. I...
1
by: sonali_reddy123 | last post by:
Hi all, I have a problem regarding use of a usercontrol in .NET. My usercontrol consists of two listviews which I say as source and destination lisviews which contains the files and folders. I...
1
by: SammyBar | last post by:
Hi all, I'm having troubles with a Symbol 9000 device (Compact Framework v 1.1) when activating the barcode scanner from a window. The problem is related to the Activated event of the form which...
1
by: Nathan Sokalski | last post by:
I am revieving the following error for one of my controls when loading any pages that use it: Server Error in '/exposure/app' Application....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...

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.