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 3 days 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.
I have a form with multiple labels and on a click event I would like to set the font style to strikethrough / strikeout. Everything I've seen so far makes it seem as though this is a read-only value. Is there a way to do this?
This is what I'm trying but it isn't happy
PowerShell Code
Double-click the code block to select all.
$M1D1P1_Click={
#TODO: Place custom script here
If( $M1D1P1BG.BackColor -eq "LimeGreen"){
$M1D1P1.Font.style.Strikeout = $true
}
Else{
$M1D1P1BG.BackColor = "LimeGreen"
}
}
This topic is 10 years and 3 days 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.