Re: The xml was improperly formatted.
Posted: Fri Sep 28, 2018 9:59 am
Ok, but is there a workaround to detect if the backspace key has been pressed?
SAPIEN Technologies Inc.
https://www.sapien.com/forums/
Code: Select all
if($_.KeyChar -eq [System.Windows.Forms.Keys]::Back){
Write-Host 'Backspace'
}
Code: Select all
$textbox1_KeyPress=[System.Windows.Forms.KeyPressEventHandler]{
#Event Argument: $_ = [System.Windows.Forms.KeyPressEventArgs]
if($_.KeyChar -eq [System.Windows.Forms.Keys]::Back){
Write-Host 'Backspace' ([int]($_.KeyChar))
}
}