[Gambas-user] How can a self made Button UserControl receive the Focus?

Benoit Minisini benoit.minisini at gambas-basic.org
Fri Mar 24 14:29:34 CET 2023


Le 24/03/2023 à 14:18, Benoit Minisini a écrit :
> Le 24/03/2023 à 13:24, Claus Dietrich a écrit :
>> Hi
>>
>> I am currently developing a button user control in Gambas language.
>>
>> So it inherits UserControl, is based on a PictureBox and the button class
>>
>> is part of a "Normal" project type (not "Component").
>>
>> My problem: During runtime the self-made button control doesn't receive
>>
>> the focus when I hit the Tab-key.
>>
>> My Question: How can I fix this?
>>
>> Best regards
>>
>> Claus
>>
> 
> You must have at least something that can takes the focus inside your 
> UserControl, and make this control the proxy of the UserControl by 
> assigning the Proxy property.
> 

Mmm... Sorry, I didn't answer your question actually, I have read it too 
fast.

But you should anyway always give your code inside a project so that 
anyone can see what you do exactly.

REgards,

-- 
Benoît Minisini.



More information about the User mailing list