Re: User Controls (Active X) - Da Process



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


.



Relevant Pages

  • Re: I really hate .NET especially inside Delphi
    ... functionality is not an option. ... What about breaking compatibility? ... IMO, it's an elegant-ish hack...but I wouldn't call it ... *better* than how other .NET languages do it. ...
    (borland.public.delphi.non-technical)
  • Re: User Controls (Active X) - Da Process
    ... dirt-standard CLS is pretty darned high, IMO. ... was an easy way to provide them with functionality. ... Another one is that you have a design mode where you can set properties, ... I think that invisible UCs are useful. ...
    (microsoft.public.vb.general.discussion)
  • RE: workshhet variable
    ... IMO, INDIRECT's functionality offers the most straight-forward way ... to string up the concatenated bits and get it working, ...
    (microsoft.public.excel.worksheet.functions)
  • Re: A simple question for Abstract Class
    ... IMO, the "abstract" doesn't add any safety, it just reduces functionality. ... Hmm - for a novice programmer who doesn't know what he/she is doing, ...
    (comp.lang.java.programmer)

Loading