PowerShell: Creating a User Interface Lesson 2 - Using PowerShell Studio

แชร์
ฝัง
  • เผยแพร่เมื่อ 29 พ.ย. 2024

ความคิดเห็น • 15

  • @tuyenngan
    @tuyenngan 11 หลายเดือนก่อน

    now 2023, i still watch this clip and learn how to use Powershell Studio, thank you very much!

    • @BryanCafferky
      @BryanCafferky  10 หลายเดือนก่อน

      You're Welcome!

  • @sidvicious5106
    @sidvicious5106 4 ปีที่แล้ว +3

    Thank you for taking the time to make this video! Really well done, watched the whole thing.

    • @BryanCafferky
      @BryanCafferky  4 ปีที่แล้ว

      You're welcome. Glad you found it useful. Please subscribe to get notified of new videos.

  • @Pteromandias
    @Pteromandias 9 หลายเดือนก่อน

    I'm not seeing this part 3 video anywhere. I wanted to watch it first.

  • @rubyashby8303
    @rubyashby8303 ปีที่แล้ว

    Good content

  • @srenlarsen3148
    @srenlarsen3148 2 ปีที่แล้ว +1

    Where do you see all code in 1 view page that are hidden away as default?
    Even if you do a ps1. they still hide stuff if you look in notepad.
    Else the need off just shut it off an have a clean design gui / form some where in the settings.

    • @BryanCafferky
      @BryanCafferky  2 ปีที่แล้ว

      When you export to file or deploy the project, all the form controls creation code is included in the output .ps1 file.

    • @srenlarsen3148
      @srenlarsen3148 2 ปีที่แล้ว +1

      ​@@BryanCafferky 😉
      When I = "Export to File" I get this:
      1. ps1 file
      2. psf file
      ps1 = I get this:
      Source File Information
      .NOTES
      region Application Functions
      = no information hidden for me
      region Generated Form Objects
      Here it has mixet it up, instead off putting is seperat so you have to manuel take stuff and replace is to give any real sens for a human being.
      psf = I get alot of nonsens code at the top like: e2auu0MgIq6fv16tLS0xD333BNP
      And under that part:
      .SYNOPSIS
      DESCRIPTION
      .EXAMPLE
      Anyway not really great missing alot off data here also.
      What I really want is to have a "Clean" code to work whit.
      And remove all the noise that are just in they way.
      I am not sure if that is possible, for else you have to use 2 different programs to take things out and replace them in the right way, Or is there in some program settings that can make code clean an user friendly.
      In the PS1 there are alot of PARAMETER text also that just fill up the file whit text messages.

    • @BryanCafferky
      @BryanCafferky  2 ปีที่แล้ว

      @@srenlarsen3148 Ah. Ok. I think I see what you mean. PowerShell Studio is a code generator when it comes to creating WinForms and it is not recommended for you to change the generated code. The idea is to work in PowerShell Studio to add your custom code and then generate/re-generate the output program. If you want a clean program to maintain n your own, best just to code it from scratch. See this blog for a tutorial. lazyadmin.nl/powershell/powershell-gui-howto-get-started/
      You may also find some POSH libraries available to help you but I get concerned they won't be maintained.

    • @srenlarsen3148
      @srenlarsen3148 2 ปีที่แล้ว

      ​@@BryanCafferky Great Thanks.
      Maybe it's just me who's used to removing code that fills up and is taking up space or is optional.
      Do you have a solution for Winforms ComboBox, How to remove the Blue "Highlight" color in Drop down menu.
      I haven´t found any yet.
      There are no transparent options in ComboBox I thing.

  • @BartvandenDonk
    @BartvandenDonk 4 ปีที่แล้ว +1

    Yes use VScode. The best and most Open Source Editor environment supported by(?) Microsoft(!)

    • @BryanCafferky
      @BryanCafferky  4 ปีที่แล้ว +3

      That's a pretty big claim. Why is it the best? Best for what? For PowerShell, PowerShell Studio offers a lot more features.

  • @ConanNYC
    @ConanNYC 4 ปีที่แล้ว +2

    I remember VB6 :)

  • @CarlosConrado
    @CarlosConrado 4 ปีที่แล้ว

    yes for vscode