- $uIColorPickerToolStripMenuItem_Click={
- #TODO: Place custom script here
- $colordialog1.ShowDialog()
- $StageBackColor = $colordialog1.Color.Name
- $tbxForm.BackColor = $StageBackColor
- }
ERROR: Exception setting "BackColor": "Cannot convert value "ffff8040" to type "System.Drawing.Color". Error: "ffff8040 is not a valid value for Int32.""
MainForm.psf (639, 2): ERROR: At Line: 639 char: 2
ERROR: + $tbxForm.BackColor = $StageBackColor
ERROR: + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ERROR: + CategoryInfo : NotSpecified: (:) [], SetValueInvocationException
ERROR: + FullyQualifiedErrorId : ExceptionWhenSetting
ERROR:
Also, I'd like to store this value so the next time I open my form, its set.. So maybe a reg key or file. Preferably a .txt file. This does work with basic colors ( Red, Black, White, Etc... )