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

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.