On Mon, 2011-11-07 at 21:26 +0100, Benoît Minisini wrote:

> > 4) It would be really, really nice if IsContainer was a RO property
> > exposed by all controls
> 
> To know if a control is a container, use the "IS" operator:
> 
>    If MyControl Is Container Then ...
> 
> The difference is when a control actually inherits UserControl. It is
> a 
> container, but it must be used as a control.
> 
> So the test you need is:
> 
>    If MyControl Is Container And If Not MyControl Is UserControl
> Then ... 


Ah! Thank you that.  Don't know why I didn't think of it.
B
------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to