Hallo Bob,
look at IComponentChangeServices.ComponentAdded event. You can hook
it in the .Site setter and then your component gets informed that it
is created. Clear the .Text (or set to a different value) in
the event handler (and you can unhook here, since you need
the event no more).
HTH,
Dima.
[quoted text, click to view] "Bob" <nobody@nowhere.com> wrote in message news:<#CFAMH7MEHA.2704@TK2MSFTNGP10.phx.gbl>...
> I have a control whose text property I don't want automatically set on
> creation in the forms designer (i.e. "MyUserControl1"), I want this left
> blank unless the user specifically puts in a value. Is this possible? I
> thought about using a custom serializer, but the only thing I could come up
> with would always keep the text property blank.
>
> TIA,
Neat, thank you!
Bob
[quoted text, click to view] "DRaiko" <draiko@rhenus.de> wrote in message
news:3d60d02c.0405070038.849ad08@posting.google.com...
> Hallo Bob,
>
> look at IComponentChangeServices.ComponentAdded event. You can hook
> it in the .Site setter and then your component gets informed that it
> is created. Clear the .Text (or set to a different value) in
> the event handler (and you can unhook here, since you need
> the event no more).
>
> HTH,
> Dima.
>
> "Bob" <nobody@nowhere.com> wrote in message
news:<#CFAMH7MEHA.2704@TK2MSFTNGP10.phx.gbl>...
> > I have a control whose text property I don't want automatically set on
> > creation in the forms designer (i.e. "MyUserControl1"), I want this left
> > blank unless the user specifically puts in a value. Is this possible? I
> > thought about using a custom serializer, but the only thing I could come
up
> > with would always keep the text property blank.
> >
> > TIA,
> > Bob
Hi Bob,
Would you mind posting the relevant portion of your code that achieves this?
I am trying to do a similar thing but am having no luck.
Thanks,
Kent
[quoted text, click to view] "Bob" <nobody@nowhere.com> wrote in message
news:ORN27LGNEHA.808@tk2msftngp13.phx.gbl...
> Neat, thank you!
>
> Bob
>
> "DRaiko" <draiko@rhenus.de> wrote in message
> news:3d60d02c.0405070038.849ad08@posting.google.com...
> > Hallo Bob,
> >
> > look at IComponentChangeServices.ComponentAdded event. You can hook
> > it in the .Site setter and then your component gets informed that it
> > is created. Clear the .Text (or set to a different value) in
> > the event handler (and you can unhook here, since you need
> > the event no more).
> >
> > HTH,
> > Dima.
> >
> > "Bob" <nobody@nowhere.com> wrote in message
> news:<#CFAMH7MEHA.2704@TK2MSFTNGP10.phx.gbl>...
> > > I have a control whose text property I don't want automatically set on
> > > creation in the forms designer (i.e. "MyUserControl1"), I want this
left
> > > blank unless the user specifically puts in a value. Is this possible?
I
> > > thought about using a custom serializer, but the only thing I could
come
> up
> > > with would always keep the text property blank.
> > >
> > > TIA,
> > > Bob
>
Don't see what you're looking for? Try a search.