Quantcast
Channel: PowerShell
Viewing all articles
Browse latest Browse all 15370

Can a PowerShell function have 2 functions on one button click event?

$
0
0

In PowerShell I would like to add a function to close the from when the button is clicked and after is calls the second script. mostly from what I am finding is make a second button and close() it.

thanks

Powershell
#Generated Form FunctionfunctionGenerateForm{######################################################################### 7/5/2016 10:31 AM# By: christnerw#########################################################################region Import the Assemblies[reflection.assembly]::loadwithpartialname("System.Windows.Forms")|Out-Null[reflection.assembly]::loadwithpartialname("System.Drawing")|Out-Null#endregion#region Generated Form Objects$form1=New-ObjectSystem.Windows.Forms.Form$button330=New-ObjectSystem.Windows.Forms.Button$InitialFormWindowState=New-ObjectSystem.Windows.Forms.FormWindowState...

Viewing all articles
Browse latest Browse all 15370

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>