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.
This topic is 8 years and 1 month old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked
User avatar
nirmalks
Posts: 38
Last visit: Tue Mar 26, 2024 5:02 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
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

Re: Shadow

Post by davidc »

[POST MOVED TO POWERSHELL GUI FORUM BY MODERATOR]
David
SAPIEN Technologies, Inc.
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

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.
This topic is 8 years and 1 month old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked