>Hi All,
>
>I have created a new form in Visual FoxPro 8.0.
>I want my application to display the primary key value as the caption when I hit the minimize button.
>
>Example:
> on the form Customer Maintenance the primary key is Customer #. When I minimize the window the value of the primary key should be the form caption.
>Assumming the form caption is "Customer Maintenance" and the Customer # has the value of "ACCESS10000000000001". Hitting the minimize button the form caption should change to "ACCESS10000000000001". My application can change the caption but I want to display of the characters instead of truncating the value. As of now it on display the first 6 characters. Is anybody can help me to solve this issue?
>
>This my code on the Resize event on the form:
>
>lcCaption = "Customer Maintenance"
>if Thisform.WindowState = 1
> lcCaption = Thisform.CustomerNo.Value
>endif
>Thisform.Caption = lcCaption
>
>I have already tried to extend the width but I have notice that changing the width on the minimize form will not take effect.
>
>
>Thank you in advance
>
>
>Rene
Rene,
I wouldn't even try to do it. However if you really want, extend the width and set window state to normal (move to minimized position). Should work.
Cetin