Hi All,
I'm currently writing an in-house Form validation framework (WinForms) which
is based on 'Component'-inheriting object.
So basically, I have a small hierarchy.
FormValidator
+-- ControlValidator
+--ValidationRule
Via UITypeEditors, I got the part of managing the different
child-collections to work properly. (CollectionEditor)
But what I don't get is how can I make the child components go away from the
form designer if you delete the 'FormValidator' component (top-leve object)
from the Form's component tray.
In other terms, I'm lookig for the same behaviour as with the
TabControl/TabPages control relationship...but not for 'Control', but rather
'Component'-based objects.
I've read a few articles, have applied some attributes
(DesignerSerializationVisibility.Content) ... but I can't seem to get them
go away when you delete the top-level object.
Any help would be appreciated.
Patrick. 5 2286
Hi, Patrick
I've started the process of escalating this issue to the product team.
Please bear with us.
Thank you for choosing the MSDN Managed Newsgroups,
John Eikanger
Microsoft Developer Support
This posting is provided “AS IS” with no warranties, and confers no rights.
--------------------
| From: "Patrick Vanden Driessche" <de*******@no-spam.be>
| Subject: Parent/Child Components: How to make the child components go
away when deleting the Parent.
| Date: Thu, 13 Nov 2003 04:56:21 +0100
| Lines: 30
| X-Tomcat-NG: microsoft.public.dotnet.languages.vb
|
| Hi All,
|
| I'm currently writing an in-house Form validation framework (WinForms)
which
| is based on 'Component'-inheriting object.
|
| So basically, I have a small hierarchy.
| FormValidator
| +-- ControlValidator
| +--ValidationRule
|
| Via UITypeEditors, I got the part of managing the different
| child-collections to work properly. (CollectionEditor)
| But what I don't get is how can I make the child components go away from
the
| form designer if you delete the 'FormValidator' component (top-leve
object)
| from the Form's component tray.
|
| In other terms, I'm lookig for the same behaviour as with the
| TabControl/TabPages control relationship...but not for 'Control', but
rather
| 'Component'-based objects.
|
| I've read a few articles, have applied some attributes
| (DesignerSerializationVisibility.Content) ... but I can't seem to get them
| go away when you delete the top-level object.
|
| Any help would be appreciated.
|
| Patrick.
|
|
|
|
Hi John,
Thank you for the follow up ....
As you can image, I kept looking for a solution on this myself too ...and I
managed to find a solution in the meantime ...
For those interested, here's what I did:
As my problem is 'Design-Time' related I created a custom
'ComponentDesigner' class, which hooks up to the 'ComponentRemoving' event
of the 'IComponentChangeService'.
Through this event, I can detect when the user deletes the 'parent'
component from the form designer and manually remove the 'children' from the
same form source code persistence.
Thank you.
Patrick.
""John Eikanger"" <jo****@online.microsoft.com> wrote in message
news:I$**************@cpmsftngxa06.phx.gbl... Hi, Patrick
I've started the process of escalating this issue to the product team. Please bear with us.
Thank you for choosing the MSDN Managed Newsgroups,
John Eikanger Microsoft Developer Support
This posting is provided "AS IS" with no warranties, and confers no
rights. -------------------- | From: "Patrick Vanden Driessche" <de*******@no-spam.be> | Subject: Parent/Child Components: How to make the child components go away when deleting the Parent. | Date: Thu, 13 Nov 2003 04:56:21 +0100 | Lines: 30 | X-Tomcat-NG: microsoft.public.dotnet.languages.vb | | Hi All, | | I'm currently writing an in-house Form validation framework (WinForms) which | is based on 'Component'-inheriting object. | | So basically, I have a small hierarchy. | FormValidator | +-- ControlValidator | +--ValidationRule | | Via UITypeEditors, I got the part of managing the different | child-collections to work properly. (CollectionEditor) | But what I don't get is how can I make the child components go away from the | form designer if you delete the 'FormValidator' component (top-leve object) | from the Form's component tray. | | In other terms, I'm lookig for the same behaviour as with the | TabControl/TabPages control relationship...but not for 'Control', but rather | 'Component'-based objects. | | I've read a few articles, have applied some attributes | (DesignerSerializationVisibility.Content) ... but I can't seem to get
them | go away when you delete the top-level object. | | Any help would be appreciated. | | Patrick. | | | |
Hi, Patrick
Thanks for sharing your solution
John Eikanger
Microsoft Developer Support
This posting is provided “AS IS” with no warranties, and confers no rights.
--------------------
| From: "Patrick Vanden Driessche" <de*******@no-spam.be>
| References: <eZ**************@TK2MSFTNGP10.phx.gbl>
<I$**************@cpmsftngxa06.phx.gbl>
| Subject: Re: Parent/Child Components: How to make the child components go
away when deleting the Parent.
| Date: Fri, 14 Nov 2003 07:43:44 +0100
| Lines: 81
| Organization: DevBrains
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <#h**************@TK2MSFTNGP09.phx.gbl>
| Newsgroups: microsoft.public.dotnet.languages.vb
| NNTP-Posting-Host: 173.128-136-217.adsl.skynet.be 217.136.128.173
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP09.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.vb:156753
| X-Tomcat-NG: microsoft.public.dotnet.languages.vb
|
| Hi John,
|
| Thank you for the follow up ....
|
| As you can image, I kept looking for a solution on this myself too ...and
I
| managed to find a solution in the meantime ...
|
| For those interested, here's what I did:
| As my problem is 'Design-Time' related I created a custom
| 'ComponentDesigner' class, which hooks up to the 'ComponentRemoving' event
| of the 'IComponentChangeService'.
| Through this event, I can detect when the user deletes the 'parent'
| component from the form designer and manually remove the 'children' from
the
| same form source code persistence.
|
| Thank you.
|
| Patrick.
|
|
| ""John Eikanger"" <jo****@online.microsoft.com> wrote in message
| news:I$**************@cpmsftngxa06.phx.gbl...
| > Hi, Patrick
| >
| > I've started the process of escalating this issue to the product team.
| > Please bear with us.
| >
| > Thank you for choosing the MSDN Managed Newsgroups,
| >
| > John Eikanger
| > Microsoft Developer Support
| >
| > This posting is provided "AS IS" with no warranties, and confers no
| rights.
| > --------------------
| > | From: "Patrick Vanden Driessche" <de*******@no-spam.be>
| > | Subject: Parent/Child Components: How to make the child components go
| > away when deleting the Parent.
| > | Date: Thu, 13 Nov 2003 04:56:21 +0100
| > | Lines: 30
| > | X-Tomcat-NG: microsoft.public.dotnet.languages.vb
| > |
| > | Hi All,
| > |
| > | I'm currently writing an in-house Form validation framework (WinForms)
| > which
| > | is based on 'Component'-inheriting object.
| > |
| > | So basically, I have a small hierarchy.
| > | FormValidator
| > | +-- ControlValidator
| > | +--ValidationRule
| > |
| > | Via UITypeEditors, I got the part of managing the different
| > | child-collections to work properly. (CollectionEditor)
| > | But what I don't get is how can I make the child components go away
from
| > the
| > | form designer if you delete the 'FormValidator' component (top-leve
| > object)
| > | from the Form's component tray.
| > |
| > | In other terms, I'm lookig for the same behaviour as with the
| > | TabControl/TabPages control relationship...but not for 'Control', but
| > rather
| > | 'Component'-based objects.
| > |
| > | I've read a few articles, have applied some attributes
| > | (DesignerSerializationVisibility.Content) ... but I can't seem to get
| them
| > | go away when you delete the top-level object.
| > |
| > | Any help would be appreciated.
| > |
| > | Patrick.
| > |
| > |
| > |
| > |
| >
|
|
|
John...
We're trying to find out why you and other [MSFT] accounts' replies include
the entire header of the messages you respond to. Ours don't. Look at the
size of it and what it contains... the path? MimeOLE version information?
Can't this stuff be turned off? Or how can I turn mine on we may as well
all do it.
Thanks,
Tom
""John Eikanger"" <jo****@online.microsoft.com> wrote in message
news:il**************@cpmsftngxa06.phx.gbl... Hi, Patrick
Thanks for sharing your solution
John Eikanger Microsoft Developer Support
This posting is provided "AS IS" with no warranties, and confers no
rights. -------------------- | From: "Patrick Vanden Driessche" <de*******@no-spam.be> | References: <eZ**************@TK2MSFTNGP10.phx.gbl> <I$**************@cpmsftngxa06.phx.gbl> | Subject: Re: Parent/Child Components: How to make the child components
go away when deleting the Parent. | Date: Fri, 14 Nov 2003 07:43:44 +0100 | Lines: 81 | Organization: DevBrains | X-Priority: 3 | X-MSMail-Priority: Normal | X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 | Message-ID: <#h**************@TK2MSFTNGP09.phx.gbl> | Newsgroups: microsoft.public.dotnet.languages.vb | NNTP-Posting-Host: 173.128-136-217.adsl.skynet.be 217.136.128.173 | Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP09.phx.gbl | Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.vb:156753 | X-Tomcat-NG: microsoft.public.dotnet.languages.vb | | Hi John, | | Thank you for the follow up .... | | As you can image, I kept looking for a solution on this myself too
....and I | managed to find a solution in the meantime ... | | For those interested, here's what I did: | As my problem is 'Design-Time' related I created a custom | 'ComponentDesigner' class, which hooks up to the 'ComponentRemoving'
event | of the 'IComponentChangeService'. | Through this event, I can detect when the user deletes the 'parent' | component from the form designer and manually remove the 'children' from the | same form source code persistence. | | Thank you. | | Patrick. | | | ""John Eikanger"" <jo****@online.microsoft.com> wrote in message | news:I$**************@cpmsftngxa06.phx.gbl... | > Hi, Patrick | > | > I've started the process of escalating this issue to the product team. | > Please bear with us. | > | > Thank you for choosing the MSDN Managed Newsgroups, | > | > John Eikanger | > Microsoft Developer Support | > | > This posting is provided "AS IS" with no warranties, and confers no | rights. | > -------------------- | > | From: "Patrick Vanden Driessche" <de*******@no-spam.be> | > | Subject: Parent/Child Components: How to make the child components
go | > away when deleting the Parent. | > | Date: Thu, 13 Nov 2003 04:56:21 +0100 | > | Lines: 30 | > | X-Tomcat-NG: microsoft.public.dotnet.languages.vb | > | | > | Hi All, | > | | > | I'm currently writing an in-house Form validation framework
(WinForms) | > which | > | is based on 'Component'-inheriting object. | > | | > | So basically, I have a small hierarchy. | > | FormValidator | > | +-- ControlValidator | > | +--ValidationRule | > | | > | Via UITypeEditors, I got the part of managing the different | > | child-collections to work properly. (CollectionEditor) | > | But what I don't get is how can I make the child components go away from | > the | > | form designer if you delete the 'FormValidator' component (top-leve | > object) | > | from the Form's component tray. | > | | > | In other terms, I'm lookig for the same behaviour as with the | > | TabControl/TabPages control relationship...but not for 'Control',
but | > rather | > | 'Component'-based objects. | > | | > | I've read a few articles, have applied some attributes | > | (DesignerSerializationVisibility.Content) ... but I can't seem to
get | them | > | go away when you delete the top-level object. | > | | > | Any help would be appreciated. | > | | > | Patrick. | > | | > | | > | | > | | > | | |
Hi, Tom
It is a limitation of our internal reader. The Tomcat reader keeps track
of a lot of extra stuff that we use internally for reporting. I trim the
excess headers out manually when I remember. If you folks find it that
irritating, I will see what it would cost to suppress them.
Let me know,
John Eikanger
Microsoft Developer Support
--------------------
| From: "Tom Leylan" <ge*@iamtiredofspam.com>
| Subject: Re: Parent/Child Components: How to make the child components go
away when deleting the Parent.
| Date: Fri, 14 Nov 2003 14:37:45 -0500
| Lines: 139
| X-Tomcat-NG: microsoft.public.dotnet.languages.vb
|
| John...
|
| We're trying to find out why you and other [MSFT] accounts' replies
include
| the entire header of the messages you respond to. Ours don't. Look at
the
| size of it and what it contains... the path? MimeOLE version information?
|
| Can't this stuff be turned off? Or how can I turn mine on we may as well
| all do it.
|
| Thanks,
| Tom
|
|
| ""John Eikanger"" <jo****@online.microsoft.com> wrote in message
| news:il**************@cpmsftngxa06.phx.gbl...
| > Hi, Patrick
| >
| > Thanks for sharing your solution
| >
| > John Eikanger
| > Microsoft Developer Support
| >
| > This posting is provided "AS IS" with no warranties, and confers no
| rights.
| > --------------------
| > | From: "Patrick Vanden Driessche" <de*******@no-spam.be>
| > | References: <eZ**************@TK2MSFTNGP10.phx.gbl>
| > <I$**************@cpmsftngxa06.phx.gbl>
| > | Subject: Re: Parent/Child Components: How to make the child components
| go
| > away when deleting the Parent.
| > | Date: Fri, 14 Nov 2003 07:43:44 +0100
| > | Lines: 81
| > | Organization: DevBrains
| > | X-Priority: 3
| > | X-MSMail-Priority: Normal
| > | X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| > | Message-ID: <#h**************@TK2MSFTNGP09.phx.gbl>
| > | Newsgroups: microsoft.public.dotnet.languages.vb
| > | NNTP-Posting-Host: 173.128-136-217.adsl.skynet.be 217.136.128.173
| > | Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP09.phx.gbl
| > | Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.vb:156753
| > | X-Tomcat-NG: microsoft.public.dotnet.languages.vb
| > |
| > | Hi John,
| > |
| > | Thank you for the follow up ....
| > |
| > | As you can image, I kept looking for a solution on this myself too
| ...and
| > I
| > | managed to find a solution in the meantime ...
| > |
| > | For those interested, here's what I did:
| > | As my problem is 'Design-Time' related I created a custom
| > | 'ComponentDesigner' class, which hooks up to the 'ComponentRemoving'
| event
| > | of the 'IComponentChangeService'.
| > | Through this event, I can detect when the user deletes the 'parent'
| > | component from the form designer and manually remove the 'children'
from
| > the
| > | same form source code persistence.
| > |
| > | Thank you.
| > |
| > | Patrick.
| > |
| > |
| > | ""John Eikanger"" <jo****@online.microsoft.com> wrote in message
| > | news:I$**************@cpmsftngxa06.phx.gbl...
| > | > Hi, Patrick
| > | >
| > | > I've started the process of escalating this issue to the product
team.
| > | > Please bear with us.
| > | >
| > | > Thank you for choosing the MSDN Managed Newsgroups,
| > | >
| > | > John Eikanger
| > | > Microsoft Developer Support
| > | >
| > | > This posting is provided "AS IS" with no warranties, and confers no
| > | rights.
| > | > --------------------
| > | > | From: "Patrick Vanden Driessche" <de*******@no-spam.be>
| > | > | Subject: Parent/Child Components: How to make the child components
| go
| > | > away when deleting the Parent.
| > | > | Date: Thu, 13 Nov 2003 04:56:21 +0100
| > | > | Lines: 30
| > | > | X-Tomcat-NG: microsoft.public.dotnet.languages.vb
| > | > |
| > | > | Hi All,
| > | > |
| > | > | I'm currently writing an in-house Form validation framework
| (WinForms)
| > | > which
| > | > | is based on 'Component'-inheriting object.
| > | > |
| > | > | So basically, I have a small hierarchy.
| > | > | FormValidator
| > | > | +-- ControlValidator
| > | > | +--ValidationRule
| > | > |
| > | > | Via UITypeEditors, I got the part of managing the different
| > | > | child-collections to work properly. (CollectionEditor)
| > | > | But what I don't get is how can I make the child components go
away
| > from
| > | > the
| > | > | form designer if you delete the 'FormValidator' component
(top-leve
| > | > object)
| > | > | from the Form's component tray.
| > | > |
| > | > | In other terms, I'm lookig for the same behaviour as with the
| > | > | TabControl/TabPages control relationship...but not for 'Control',
| but
| > | > rather
| > | > | 'Component'-based objects.
| > | > |
| > | > | I've read a few articles, have applied some attributes
| > | > | (DesignerSerializationVisibility.Content) ... but I can't seem to
| get
| > | them
| > | > | go away when you delete the top-level object.
| > | > |
| > | > | Any help would be appreciated.
| > | > |
| > | > | Patrick.
| > | > |
| > | > |
| > | > |
| > | > |
| > | >
| > |
| > |
| > |
| >
|
|
| This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Suzanne Vogel |
last post by:
Hi,
I've been trying to write a function to test whether one class is
derived from another class. I am given only id's of the two classes.
Therefore, direct use of template methods is not an...
|
by: Squeamz |
last post by:
Hello,
Say I create a class ("Child") that inherits from another class
("Parent"). Parent's destructor is not virtual. Is there a way I can
prevent Parent's destructor from being called when a...
|
by: Stuart McGraw |
last post by:
I haven't been able to figure this out and would
appreciate some help...
I have two tables, both with autonumber primary
keys, and linked in a conventional master-child
relationship. I've...
|
by: Claus Holm |
last post by:
I'm trying to enable a menuitem in the parent form from a mdichild. Rather
than making the menuitems public, I'd go for a public method in the parent
form to do the change, but when I call the...
|
by: Maheshkumar.R |
last post by:
Hi groups,
How i can command over the MDI CHIlD forms created dynamically at runtime from PARENT.
Let say, i have generated 5 mdichild forms, but i want to work with child form1 from MDI...
|
by: reandeau |
last post by:
I'm building out a OO based app in PHP 5 but I'm getting a little
confused on children contructing parents.
I have a parent that looks like this:
abstract Class State {
protected $database;...
|
by: Sashi |
last post by:
class parent{
Parent(){};
~Parent(){};
}
Child: public Parent{
Child(){};
~Child(){};
|
by: manstey |
last post by:
Hi,
I am having trouble designing my classes.
I have two classes. The first one wraps around an old-style class
called oref
Class CacheClass(object):
def __init__(self, obj):
|
by: Peted |
last post by:
I have a simple c# app that opens a child form in a mdi parent.
I want the child form to open in the center of the mdi parent, so i
can open the child form ok, it all works fine, but setting
...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM)
The start time is equivalent to 19:00 (7PM) in Central...
|
by: erikbower65 |
last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps:
1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal.
2. Connect to...
|
by: kcodez |
last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Sept 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM)
The start time is equivalent to 19:00 (7PM) in Central...
|
by: Taofi |
last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same
This are my field names
ID, Budgeted, Actual, Status and Differences
...
|
by: Rina0 |
last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
|
by: DJRhino |
last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer)
If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _
310030356 Or 310030359 Or 310030362 Or...
|
by: lllomh |
last post by:
How does React native implement an English player?
|
by: DJRhino |
last post by:
Was curious if anyone else was having this same issue or not....
I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
| |