datagridview.add_CellDoubleClick

Ask questions about creating Graphical User Interfaces (GUI) in PowerShell and using WinForms controls.
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.
This topic is 10 years and 4 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked
User avatar
aleXxX
Posts: 11
Last visit: Tue Mar 01, 2016 1:05 am

datagridview.add_CellDoubleClick

Post by aleXxX »

Hi,

I am trying to do something like this:
PowerShell Code
Double-click the code block to select all.
for($i=1;$i -le 3;$i++)
{
(Get-Variable -Name "datagridview$i").Value.add_CellDoubleClick($test1)
}
How can I get the value inside "()" to a dynamic variable instead of "$test1" ?

I want to be able to dynamically make CellDoubleClick events instead of static.

Thanks in advance!

/a
This topic is 10 years and 4 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked