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.
Locked
User avatar
nirmalks
Posts: 30
Joined: Sun Aug 02, 2015 10:01 am

Shadow

Post by nirmalks » Thu Feb 11, 2016 6:59 am

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: 4883
Joined: Thu Aug 18, 2011 4:56 am

Re: Shadow

Post by davidc » Thu Feb 11, 2016 9:22 am

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

User avatar
jvierra
Posts: 11276
Joined: Tue May 22, 2007 9:57 am
Contact:

Re: Shadow

Post by jvierra » Thu Feb 11, 2016 10:37 am

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