[Gambas-user] GridView.ClientWidth yields incorrect size on Form_Open
Benoît Minisini
g4mba5 at gmail.com
Fri Feb 1 00:17:29 CET 2019
Le 01/02/2019 à 00:11, T Lee Davidson a écrit :
> I am trying to resize a column other than the last column to take up the
> remaining available client space. But, I don't get a correct value for
> GridView.ClientWidth until the Form_Show event. Per the subject line, is
> this expected behavior or a bug?
>
It's expected, as the form and its contents is often arranged after the
Open event has been emitted.
I suggest using use the Arrange (or rarely the BeforeArrange) event of
some container including your gridview to do what you want to do.
Regards,
--
Benoît Minisini
More information about the User
mailing list