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

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


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.

Regards,

-- 
Benoît Minisini.



More information about the User mailing list