Re: User Controls (Active X) - Da Process
- From: "Karl E. Peterson" <karl@xxxxxxxxxx>
- Date: Wed, 9 Sep 2009 12:00:49 -0700
Eduardo wrote:
Karl E. Peterson escribió:
I'm not hearing that you need to include a user-interface with the encapsulated
functionality. If that's the case, the bar for using a UC rather than your
dirt-standard CLS is pretty darned high, IMO. Used to be, there was a real
purpose for invisible UCs. Users were too dumb to create a class instance in
code, and this was an easy way to provide them with functionality. And really,
that remains pretty much *almost* the only rationalization for writing a zero-UI
UC to this day.
(I qualify that just a bit, because there are features - such as AsyncDownload -
that are only available within a UC.)
Another difference is that you have a reference to the form without
having to set it to a property.
Sort of, yeah. You can't sink events from the parent without setting up a
circlejerk, right?
Another one is that you have a design mode where you can set properties,
and also have property pages.
I tend to not view that in a very positive light anymore. I like explicitness
everywhere now. I don't generally set very many visible control (or form)
properties at design-time, either. It just reduces my ability to reuse/recycle the
effort.
I think that invisible UCs are useful.
But not for much. <g>
--
..NET: It's About Trust!
http://vfred.mvps.org
.
- Follow-Ups:
- Re: User Controls (Active X) - Da Process
- From: Eduardo
- Re: User Controls (Active X) - Da Process
- References:
- User Controls (Active X) - Da Process
- From: Webbiz
- RE: User Controls (Active X) - Da Process
- From: Bee
- Re: User Controls (Active X) - Da Process
- From: Webbiz
- Re: User Controls (Active X) - Da Process
- From: Karl E. Peterson
- Re: User Controls (Active X) - Da Process
- From: Eduardo
- User Controls (Active X) - Da Process
- Prev by Date: Re: Function CrossOver Array in VB.net 2008
- Next by Date: Re: User Controls (Active X) - Da Process
- Previous by thread: Re: User Controls (Active X) - Da Process
- Next by thread: Re: User Controls (Active X) - Da Process
- Index(es):
Relevant Pages
|
Loading