The xml was improperly formatted.
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: The xml was improperly formatted.
Ok, but is there a workaround to detect if the backspace key has been pressed?
Re: The xml was improperly formatted.
Code: Select all
if($_.KeyChar -eq [System.Windows.Forms.Keys]::Back){
Write-Host 'Backspace'
}
Re: The xml was improperly formatted.
This will show you the keychar value.
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))
}
}