[Gambas-user] How top clearing a readonly textbox
gian
bagoneo at libero.it
Sun Nov 27 16:03:22 CET 2022
Il 27/11/22 15:26, Fabien Bodard ha scritto:
> Le dim. 27 nov. 2022 à 15:25, Fabien Bodard <gambas.fr at gmail.com> a écrit :
>>
>> 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
>
Hi Fabien,
thank you very much, I had tried 'Create Static' and 'Inherits', one
should not stop at the first difficulties....
I also had the doubt that it was a BB trap.
That by connecting the YAMAHA, this, instead of strangling itself,
should strangle BB :-)
You are always kind to clumsy people like me.
Have a good Sunday
Gianluigi
More information about the User
mailing list