I am designing an inherited control. Besides the OnCreateControl , what
other events can be listened to that the if(!DesignMode) test willl
work? The reason I am asking is that a customer has asked to hide the
control. However, setting the controls visible property to false means
that the OnCreateControl which contains some essential processing never
fires. I need somewhere else to relocate this code, presumably in the
next event after the OnCreateControl event. Also, is there is a
published list of events in the lifecyle of a winforms control? I
can't find anything on this!
TIA
Greg. 3 3118
Depending on what it is, if this code is essential to the control running,
it should be in constructor. usually a initialise method and have that
called by constructor.
"Greg" <sp********@yahoo.co.ukwrote in message
news:11**********************@e3g2000cwe.googlegro ups.com...
>I am designing an inherited control. Besides the OnCreateControl , what
other events can be listened to that the if(!DesignMode) test willl
work? The reason I am asking is that a customer has asked to hide the
control. However, setting the controls visible property to false means
that the OnCreateControl which contains some essential processing never
fires. I need somewhere else to relocate this code, presumably in the
next event after the OnCreateControl event. Also, is there is a
published list of events in the lifecyle of a winforms control? I
can't find anything on this!
TIA
Greg.
Thanks Daniel, but I need to be able to differentiate between run and
design time since the app I have written is for a mini-IDE.
Regards,
Greg.
Daniel wrote:
Depending on what it is, if this code is essential to the control running,
it should be in constructor. usually a initialise method and have that
called by constructor.
"Greg" <sp********@yahoo.co.ukwrote in message
news:11**********************@e3g2000cwe.googlegro ups.com...
I am designing an inherited control. Besides the OnCreateControl , what
other events can be listened to that the if(!DesignMode) test willl
work? The reason I am asking is that a customer has asked to hide the
control. However, setting the controls visible property to false means
that the OnCreateControl which contains some essential processing never
fires. I need somewhere else to relocate this code, presumably in the
next event after the OnCreateControl event. Also, is there is a
published list of events in the lifecyle of a winforms control? I
can't find anything on this!
TIA
Greg.
Ah this is for a development environment?
Well if they are hiding the control then it cannot be seen or used anyway,
you could have it fire on being made visible? Not 100% of your requirements
or use so this may be wrong.
"Greg" <sp********@yahoo.co.ukwrote in message
news:11**********************@m73g2000cwd.googlegr oups.com...
Thanks Daniel, but I need to be able to differentiate between run and
design time since the app I have written is for a mini-IDE.
Regards,
Greg.
Daniel wrote:
>Depending on what it is, if this code is essential to the control running, it should be in constructor. usually a initialise method and have that called by constructor.
"Greg" <sp********@yahoo.co.ukwrote in message news:11**********************@e3g2000cwe.googlegr oups.com...
>I am designing an inherited control. Besides the OnCreateControl , what
other events can be listened to that the if(!DesignMode) test willl
work? The reason I am asking is that a customer has asked to hide the
control. However, setting the controls visible property to false means
that the OnCreateControl which contains some essential processing never
fires. I need somewhere else to relocate this code, presumably in the
next event after the OnCreateControl event. Also, is there is a
published list of events in the lifecyle of a winforms control? I
can't find anything on this!
TIA
Greg. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Andy Read |
last post by:
Hello all,
I have the requirement to produce source code that produces an object
hierarchy.
Example:
Root
|
Folder 1
|
by: Clarence Gardner |
last post by:
I'm seeing surprising behavior, consistent across Opera, Firefox, and IE.
An event handler is changing the value of an element, and there is apparently
no Change event being generated for the...
|
by: typingcat |
last post by:
First of all, I'm an Asian and I need to input Japanese, Korean and so
on. I've tried many PHP IDEs today, but almost non of them supported
Unicode (UTF-8) file.
I've found that the only Unicode...
|
by: Alex Bink |
last post by:
Hi,
I have a validating event on a textbox in which I want to prevent the user
to leave the textbox without entering the right data. Only if he clicks on
another specific control he is allowed...
|
by: ALI-R |
last post by:
Hi All,
When we say events are processed asynchronously in for instance Sharepoint
,what dose it mean?
Thanks for your help.
Ali
|
by: Jeff Smythe |
last post by:
I simply want to execute some code once when a new session of my ASP.NET
application is started (I'm not using session state for anything else - just
writing some data to a database). I thought...
|
by: Shimon Sim |
last post by:
I have Panel control on the page. I am handling Init event for it. It
doesn't seem to fire at all. Why?
Thank you
Shimon.
|
by: Gummy |
last post by:
Hello,
I created a user control that has a ListBox and a RadioButtonList (and other
stuff). The idea is that I put the user control on the ASPX page multiple
times and each user control will...
|
by: Daniela Roman |
last post by:
Hello,
I try to fire an event under a button click event and maybe anybody can give
a clue please.
I have let's say a WEB grid with PageIndexChanged event:
private void...
|
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...
|
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...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
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)...
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
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
|
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...
| |