Drew Speedie in his VFP Code examples (in download Corner) did
a similar trick with Grid Column Headers. Basically, he sized
the header, or button in this case, and placed a lable with the
desired text on top of it using zorder.
It's a little hoakie, but it gives the look of multiline captions.
John
>Arnon
>
>I just tried it with no luck.
>
>Tom
>
>
>>>I want to write 2 or more lines of text or long
>>>text on push button.
>>did u try adding chr(13) e.g.
>>this.caption="my 2 line"+chr(13)+"caption"
>>
>>Arnon
>
John Adams
John T. Adams
Software Consulting Services