Hi,
I'd like to call for a certain action in a form in another action
I saw this post viewtopic.php?t=6716
but &$datagridviewGroup_CellDoubleClick does not work, neither is invoke-item $datagridviewGroup_CellDoubleClick
Please tell me howto make this work.
J.
PS Studio: invoke another object action in another object
Forum rules
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Re: PS Studio: invoke another object action in another object
Works fine for me but it must be done like this:
Code: Select all
$datagridview1_CellDoubleClick=[System.Windows.Forms.DataGridViewCellEventHandler]{
#Event Argument: $_ = [System.Windows.Forms.DataGridViewCellEventArgs]
Write-Host 'Cell DoubleClick'
}
$buttonDoubleClickMe_Click={
$datagridview1_CellDoubleClick.Invoke($this,$null)
}