PowerShell Tutorials : Making a GUI Part 1 - Introduction & Hello World

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

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

  • @KerryCox1967
    @KerryCox1967 9 หลายเดือนก่อน +2

    Really nice start to what looks like a great series. Keep it coming.

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

    Hello "JackedProgrammer", Your channel is what I researched to learn Powershell, make form and launch script. Thanks a LOT.
    Today is my first lesson : )

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

      Awesome!!! Glad my channel was able to do that for you :) Not a problem, thank you for watching :)

  • @ClassicRiki
    @ClassicRiki ปีที่แล้ว +5

    I appreciate that you understand the need for a basic introduction. Nice to see mate

    • @pablocruise9514
      @pablocruise9514 5 หลายเดือนก่อน +1

      Its great to get training that starts with the ABCs. To often I've been handed code that's written by Einstein and then have to spend hours or even days trying to figure how the dang thing works.

  • @CandiceSaffield
    @CandiceSaffield 16 วันที่ผ่านมา +1

    i love it!

  • @scratchislifeoriginal
    @scratchislifeoriginal 3 หลายเดือนก่อน +1

    You made a good way about how variables work too: you can even set them to objects so you (and we) can do it faster. Thanks!

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

    Thumbs UP!.........Good initial video.......Let's see how the next ones stack up.

    • @CandiceSaffield
      @CandiceSaffield 16 วันที่ผ่านมา +1

      i like this word you say!

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

    This video is great! I’m learning VS and PS and this is a great walk through

  • @soliver111
    @soliver111 2 ปีที่แล้ว +3

    Great tutorial thank you...
    I had to run this command to allow for the use of forms.
    Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
    Cheers

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

    My native is spanish and understand some English and I need to say: good intro and good speach! :) PD: Windows forms are areally big and all properties can be used for a powershell GUI. Hope this tutorials take advantage of that

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

    Excellent intro for creating a form in Powershell

  • @SPOOKIEMOOKe
    @SPOOKIEMOOKe 2 ปีที่แล้ว +3

    Starting your series, thank you so much for making these. This is a easy(isk) introduction for powershell for a code noobie like me

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

    Thanks! This class was very helpful. I was able to create my first GUI! Thank you very much for the video!

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

    This is exactly I wanted to learn. Thank your very much for reading my mind. 🙂

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

    Awesome tutorial, i never had time to learh how to do it. Now i have more time and your tutorial is amazing

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

    Nice video 👌🏻 looking forward to the rest.

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

      Always working on more for this series :) Glad you're enjoying the series

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

    Great! Reminds of my past VB experience. What editor are you using? Thanks

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

      That's awesome, I'm using the PowerShell ISE, for newer versions of PowerShell you can use Visual Studio Code, Ill be making a video on that pretty soon as well, glad you're enjoying the videos :)

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

    Great video! Thank you very much. I was under the impression that PoSh was all case insensitive. Any ideas on why 'style' needs to be lower case?

    • @jano.5485
      @jano.5485 ปีที่แล้ว

      Because the with the .font you set a property on a System.Windows.Forms.Label object which existed before PowerShell and this object expects the input with lower case.
      Now if someone actually would have written a PowerShell cmdlet for interacting with these kinds of objects (a wrapper if you want), in there the design choice would have been made to disguise the case sensitive nature of the object.

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

    Great video. Subscribed.

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

      Thank you so much! Glad you enjoyed the video :)

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

    Hi Jack got a question to benefit from learning powershell should I watch the project from 1 to the latest one you uploaded or can I start on whichever sounds good to me . Also appreciate your content they are very beneficial.

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

      I would start on which ever one sounds more fun and interesting to you they aren’t ordered by difficulty some of the later ones actually might be easier , I always recommend trying the ones that interest you more :) glad you’re enjoying the video :)

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

      @@jackedprogrammer thank you that’s answered my question I want to learn the ad user creations and being able to see how that’s done

  • @IntuneVitaDoctrina
    @IntuneVitaDoctrina 4 หลายเดือนก่อน

    Very nice video, thanks!

  • @nirakar-sapkota
    @nirakar-sapkota 11 หลายเดือนก่อน

    Subscribed..Thanks for this amazing playlist..

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

    Thank you ! this is very helpful !!

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

      No problem :), glad you're enjoying the videos :)

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

    When it comes to positioning the label, I would have expected it to work by taking the width of the form dived by 2, and then subtracting the width of the label divided by 2. Same should go for height to place it dead in the center. But for some reason that seem to skew the placement to the right (and down) in a way that doesn't make sense to me. Am I missing something in how the width and height attribute works? With the suggested values from the tutorial, the forms Width and Height are 518 and 347 according to a simple Write-Host of those attributes - which seems reasonable with some frills around the actual form. The Label gives back 100 and 23 for the similar attributes - also reasonable. But why then isn't (518/2)-(100/2) = 209 the reasonable first argument for the Point, and similarly (347/2)-(23/2) = (roughly) 162 the second?

    • @drworm-s6z
      @drworm-s6z ปีที่แล้ว +1

      I am very much a beginner when it comes to PowerShell, so don't pretend to know. But, could it be based on what point on the label it's putting where? In other words, if it's putting the top-left corner of the label in the center, that would make the actual text be to the right and below that center point.

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

    Thank you!! I gave this a crack a couple of years ago, (It's a little above my paygrade but I wanted to try) and Other tutorials picked up way past this point. I felt like an imbecile because all I could do was download other peoples scripts and screw with it until it worked. Too much guesswork.

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

    Good morning,
    I compiled my ps1 script (WPF) with Invoke-ps2exe.
    My concern is that once compiled my solution launches just behind I have the terminal which opens so far I have not found how to hide it. So I can't make the solution available for other lambda users. Would you be able to do so that the terminal does not open or does not appear in visible please?

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

    Sir please give the link of service check gui one it’s awesome I need to create that one , will really appreciate

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

    is it some git when we can copy one line by one from script and practice?

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

    Thank you sir. Can you please provide the codes for Scroll down an web page

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

    Why is $Helloworldform.Dispose(). Why it doesnt erase the object you created before??? I would have thought you needed to use Dispose() at the beginning to clear up then load the objects.

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

    Thanks much ¡! 👏🏻❤️👍🏻

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

      No problem glad you’re enjoying the videos :)

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

    Powershell is quite powerful, its a shame Linux bash doesn't have such tools at fingertips (without complex code and other languages)

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

    Seriously - ads every 2-3 minutes? Google - this is why we Adblock TH-cam!

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

    $result = 120 * 70 / 100 $lbltitle.Location=new-Object System.Drawing.Point(120,$result)

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

    I swear i have the same thing typed out but get the following error
    Exception calling "AddRange" with "1" argument(s): "Top-level control cannot be added to a control."
    At Y:\Documents\Hello World - PS.ps1:18 char:1
    + $HelloWorldForm.Controls.AddRange(@($lbltitle))
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : ArgumentException
    Add-Type -AssemblyName System.Windows.Forms
    $FormObject = [System.Windows.Forms.Form]
    $LabelObject = [System.Windows.Forms.Form]
    $HelloWorldForm=New-Object $FormObject
    $HelloWorldForm.ClientSize='500,300'
    $HelloWorldForm.Text='Hello World - Tutorial'
    $HelloWorldForm.BackColor="#ffffff"
    $lbltitle=New-Object $LabelObject
    $lbltitle.Text='Hello World!'
    $lbltitle.AutoSize=$true
    $lbltitle.Font='Veranda,24,style=Bold'
    $lbltitle.Location=New-Object System.Drawing.Point(120.110)
    $HelloWorldForm.Controls.AddRange(@($lbltitle))
    ## Display the form
    $HelloWorldForm.ShowDialog()
    ## Cleans up the form
    $HelloWorldForm.Dispose()

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

      You have a typo, should be a Label instead of a Form, line 4: $LabelObject = [System.Windows.Forms.Label]

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

      @@nikitanikolaev6174 I had the same damn problem lol, thanks for that, I was going line by line but didn't check the top lines lol