[Gambas-user] How top clearing a readonly textbox

Fabien Bodard gambas.fr at gmail.com
Sun Nov 27 15:25:51 CET 2022


Le dim. 27 nov. 2022 à 15:25, Fabien Bodard <gambas.fr at gmail.com> a écrit :
>
> Sorry I forgot one line :-)
>
> You must to export the class
>
> I join a demo.
>
> Be carrefull It change the way of all the text boxes of your project.
>
> You can also make a class named "MyTextBox" with
>
> Export
> Inherit TextBox
>
> Public Sub Clear()
>
>   If not super.ReadOnly then Super.Clear
>
> End
>
> This way only your class is changed.
>
> Regards,
>
> --
> Fabien Bodard



-- 
Fabien Bodard
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TextBoxDemo-0.0.1.tar.gz
Type: application/gzip
Size: 12088 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20221127/59f88385/attachment-0001.gz>


More information about the User mailing list