Shadow

Ask questions about creating Graphical User Interfaces (GUI) in PowerShell and using WinForms controls.
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Locked
User avatar
nirmalks
Posts: 30
Meble kuchenne na zamówienie - na wymiar - Wrocław
Joined: Sun Aug 02, 2015 10:01 am

Shadow

Post by nirmalks »

Good Morning guys!

Can someone please post a few examples as to:
-How to add shadow to a Panel
-How to create round-shaped buttons.

Many thanks for pointers!

Nirmal

User avatar
davidc
Posts: 5913
Joined: Thu Aug 18, 2011 4:56 am

Re: Shadow

Post by davidc »

[POST MOVED TO POWERSHELL GUI FORUM BY MODERATOR]
David
SAPIEN Technologies, Inc.

jvierra
Posts: 14344
Joined: Tue May 22, 2007 9:57 am
Contact:

Re: Shadow

Post by jvierra »

You would have to use the paint event and get the hDC or "Graphics" object and do all of the painting yourself. Look for examples of OwnerDraw controls. If you are not a programmer I suggest that this might be a bit difficult and I doubt that there are an PowerShell examples.

Locked