Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Ahh...found the problem... I'm now executing the code in the activate event and it works fine.
>Refresh doesn't seem to solve the problem. And I am doing the code below in the show event of the form...so THIS. is referring to the form. And Lockscreen is not involved.
>
>Any other ideas out there?
>
>>Bob,
>>
>>Just a thought, did you Refresh ? or is there a LockScreen?
>>
>>Ric
>>
>>>Hi.
>>>
>>>I want a grid to fill a window.
>>>
>>>The window was previously given a windowstate=2 (Maximized) before the window is shown. Also the window has a showwindow of 1 (In top level form).
>>>
>>>Here is the code in the show event:
>>>
>>>WITH ThisForm.bGrid
>>> .left = 0
>>> .top = 0
>>> .height = THIS.Height
>>> .width = THIS.Width
>>>ENDWITH
>>>
>>>Its not filling the window...
>>>
>>>There are no other objects on the window. No menu.
>>>
>>>What am I doing wrong?
>>>
>>>Thanks.
>>>
>>>Bob
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement