473,320 Members | 1,921 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,320 software developers and data experts.

What does EnsureChildControls really Ensure?

EnsureChildControls makes sure CreateChildControls() is called

So then the children are "created"

What does "created" actually mean? Is only Constructor() call?
OnInit()? OnLoad()? ...?

Guessing EnsureChildControls() is recursive. Are the grandchildren
"created" to?
Nov 18 '05 #1
1 3347
Created means at least created and added to the parent's Controls
collection.

EnsureChildControls isn't recursive at all. Its little more than this:

if (!ChildControlsCreated)
{
CreateChildControls();
ChildControlsCreated = true;
}

Whether or when grandchild controls are created depends on the child
controls. If the child happens to call EnsureChildControls, then the
children of that child will be created.
--
John Saunders
John.Saunders at SurfControl.com
"Sally" <po**************@yahoo.com> wrote in message
news:ff**************************@posting.google.c om...
EnsureChildControls makes sure CreateChildControls() is called

So then the children are "created"

What does "created" actually mean? Is only Constructor() call?
OnInit()? OnLoad()? ...?

Guessing EnsureChildControls() is recursive. Are the grandchildren
"created" to?

Nov 18 '05 #2

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

Similar topics

220
by: Brandon J. Van Every | last post by:
What's better about Ruby than Python? I'm sure there's something. What is it? This is not a troll. I'm language shopping and I want people's answers. I don't know beans about Ruby or have...
92
by: Reed L. O'Brien | last post by:
I see rotor was removed for 2.4 and the docs say use an AES module provided separately... Is there a standard module that works alike or an AES module that works alike but with better encryption?...
125
by: Sarah Tanembaum | last post by:
Beside its an opensource and supported by community, what's the fundamental differences between PostgreSQL and those high-price commercial database (and some are bloated such as Oracle) from...
6
by: WindAndWaves | last post by:
Hi Folks I have inhereted a script that I understand reasonably well, I just do not understand !/^\d+$/.test(el.value) what the hell does that mean? Below is the script (there are really...
1
by: Sally | last post by:
EnsureChildControls makes sure CreateChildControls() is called So then the children are "created" What does "created" actually mean? Is only Constructor() call? OnInit()? OnLoad()? ...? ...
1
by: Kepler | last post by:
I have a custom control that is thrown onto a UserControl that is thrown onto a WebForm. Basically, I've got a scenario where if my UserControl sets an attribute on the custom control in the ascx,...
5
by: Dimitris Pantazopoulos | last post by:
Hello. Are there any known issues with the EnsureChildControls method? In a composite control, the Width property wraps the Width property of the TextBox child control: public Unit Width {...
669
by: Xah Lee | last post by:
in March, i posted a essay “What is Expressiveness in a Computer Language”, archived at: http://xahlee.org/perl-python/what_is_expresiveness.html I was informed then that there is a academic...
1
by: shapper | last post by:
Hello, I am creating a custom control and I have the following: Protected Overrides Sub CreateChildControls() With MyBase.Controls .Add(Panel1) .... End With
167
by: darren | last post by:
Hi I have to write a multi-threaded program. I decided to take an OO approach to it. I had the idea to wrap up all of the thread functions in a mix-in class called Threadable. Then when an...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shllpp 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.