473,698 Members | 2,942 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.ShowDialo g
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.ShowDialo g Returned
*******
*******Call FV&C method
*******Do FV&C.ShowDialo g
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.ShowDialo g Returned

Dec 20 '05 #1
2 3051
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******** ******@TK2MSFTN GP09.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
1294
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 specifies which mode it should be, i.e. embedded or dialog... what is the best way of accomplishing this?
1
1461
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 be loading a different usercontrol-2 based on the selections in usercontrol-1. Also I thought of passing the selection values through
0
1315
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 different user control. I'm more worry on the sequence as which user control gets loaded first. The user control I've on the web form depends on the user control on the BasePage to load first. Most of the time, it seems everything is ok (BasePage...
2
1975
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 forms will load and others won't. Those that won't load at startup don't load with the Show or ShowDialog command either. Can anyone give me a hint as to what went wrong?
5
2137
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 it force SomeForm to be on top of Me if Me is a control placed on some form? I experimented a little but didn't resolve the issue.
2
1388
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 select files from source view and transfer it to the destination view.The problem arises while displaying the dialog for overwriting the file or folder if it is present on the other side.
1
1344
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 select files from source view and transfer it to the destination view.The problem arises while displaying the dialog for overwriting the file or folder if it is present on the other side.
1
8066
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 carries the task of the initializing the scanner. It looks like this event is not called after the creation of one of the forms. Let me describe shortly the sequence of form creation. The app first call a browsing form by using ShowDialog()....
1
1748
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. -------------------------------------------------------------------------------- Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
0
9170
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9031
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8904
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6531
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5867
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4372
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4624
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3052
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2341
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.