Friday, January 31, 2014

PowerShell and GUI : Working with GUI “Form” properties using PowerShell Studio 2012

 

In my previous post,Powershell Studio 2012 we had created a blank PowerShell GUI form, in this post, I am just sharing about few useful form properties.

Note: We are using Sapien PowerShell Studio 2012

Windows State of the form

If you want to run your GUI to me minimize, or maximize when they run, you are use the “WindowState” field property, to set it as per your needs, either, to stay, it Normal, Minimized or Maximized.

clip_image001[4]

 

Customize Cursor.

Do you want to use a specific cursor for your PowerShell GUI applications, Yes! , you can, using the “Cursor” field property, just click on “Cursor” and choose the cursor which you like to use.

clip_image002[4]

 

Setting Form Border Style

 

You, can also set the style of the form border, using “FormBorderStyle” field property. You can check the below table about the form border style vales and their effects on the form.

 

clip_image003[4]

 

Value

Effect on the form

None

With No Border,

Fixed 3D

You, can’t resize the form, with ICON on the top, with Maximize, Minimize and cancel button  {not able to spot any big difference}

Fixed Single

You, can’t resize the form, with ICON on the top, with Maximize, Minimize and cancel button

Fixed Dialogue

You, can’t resize the form, with NO  ICON, with Maximize, Minimize and cancel button

 

Sizable

You, can resize form, with ICON on the top, with Maximize, Minimize and cancel button

FixedToolWindow

A form with a close button only. You, can’t resize the form.

SizableToolWindow

A form with a close button only. You, can resize the form.

That’s all for today, See you in my next post

 

Thanks

Regards

Aman Dhally

clip_image017 clip_image018 clip_image019 clip_image020  clip_image021

4 comments:

  1. If you are looking for affordable 1BHK, 2BHK and 3BHK lavish apartments in various sizes than you are at right place Here you have options to get best residential properties in various sizes.
    Flats For Sale In Dwarka

    ReplyDelete
  2. I am going to highly recommend this web site!
    Flats for Sale in Manikonda

    ReplyDelete
  3. If you are looking for best retail space for rent in noida go for Supertech Mart Romano

    ReplyDelete
  4. Baani City Center Gurgaon, top Localities to rent & buy a property in Gurgaon

    ReplyDelete