ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Gradient form background (https://www.excelbanter.com/excel-programming/345395-gradient-form-background.html)

SkylineGTR[_2_]

Gradient form background
 
Hi all,

Is it possible to give a UserForm in VBA a gradient background - maybe using
the WinAPI?

Looking around it seems not, but can anyone confirm that it is not possible
please?

Cheers

Jezebel[_3_]

Gradient form background
 
You could create a jpg of the gradient you want, then use an image control
to apply that to your form.



"SkylineGTR" wrote in message
...
Hi all,

Is it possible to give a UserForm in VBA a gradient background - maybe
using
the WinAPI?

Looking around it seems not, but can anyone confirm that it is not
possible
please?

Cheers




SkylineGTR

Gradient form background
 
Hi Jezebel,

Thank you for your reply. I wanted the solution to be as efficient as
possible, in terms of speed and disk space. After much soul searching
you were right! An extra 20kb added onto the workbook and I got the
look I needed.

Thank you very much!

Jezebel wrote:
You could create a jpg of the gradient you want, then use an image control
to apply that to your form.



"SkylineGTR" wrote in message
...
Hi all,

Is it possible to give a UserForm in VBA a gradient background - maybe
using
the WinAPI?

Looking around it seems not, but can anyone confirm that it is not
possible
please?

Cheers




All times are GMT +1. The time now is 10:22 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com