Question about GUI Template

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 7 years and 3 months 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
Mitzen
Posts: 15
Last visit: Thu Jan 19, 2017 9:01 am

Question about GUI Template

Post by Mitzen »

Is there an easy / user friend way on how to modify the border of my GUI?

If it's not easy can you please point me to a good tutorial / guide on how to do so?
test.PNG
test.PNG (8.92 KiB) Viewed 2493 times
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: Question about GUI Template

Post by jvierra »

jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: Question about GUI Template

Post by jvierra »

User avatar
Mitzen
Posts: 15
Last visit: Thu Jan 19, 2017 9:01 am

Re: Question about GUI Template

Post by Mitzen »

I see that option for the properties in powershell studio. But what if I wanted to create my own image and overlay it? Or what if I wanted a black/red theme?
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: Question about GUI Template

Post by jvierra »

Mitzen wrote:I see that option for the properties in powershell studio. But what if I wanted to create my own image and overlay it? Or what if I wanted a black/red theme?
We cannot use WPF themes with custom borders with Windows Forms. You need to use WPF for that.

Here is some background on creating a custom "Form" - http://stackoverflow.com/questions/4246 ... nforms-app
User avatar
Mitzen
Posts: 15
Last visit: Thu Jan 19, 2017 9:01 am

Re: Question about GUI Template

Post by Mitzen »

Oh man :/

This seems way out of my league. Thanks for the information though
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: Question about GUI Template

Post by jvierra »

Not that hard. Use Visual Studio to create a custom form and then replace "New-Object Windows.Systems.Forms.Form" with "Windows.Systems.Forms.MyForm" an you will have the customized chrome.
User avatar
Mitzen
Posts: 15
Last visit: Thu Jan 19, 2017 9:01 am

Re: Question about GUI Template

Post by Mitzen »

Do you have any recommended guides and/or videos for doing just this?
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: Question about GUI Template

Post by jvierra »

I don't but I am sure there are hundreds out there. I have some old ones in MFC but that is not helpful with the Net version.
This topic is 7 years and 3 months 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