Search found 7 matches

by wlewis
Tue Mar 20, 2012 8:05 am
Forum: Windows PowerShell
Topic: Error Providers, Validation, and locked Controls
Replies: 7
Views: 1857

Error Providers, Validation, and locked Controls

Looking into it more I can see that it's not necessary to use the Validated event and what I'm trying to do can be handled entirely through the Validating event. Apparently when I had originally found the "Validating the Form" I started testing before I finished reading. Otherwise i would have answe...
by wlewis
Tue Mar 20, 2012 6:43 am
Forum: Windows PowerShell
Topic: Error Providers, Validation, and locked Controls
Replies: 7
Views: 1857

Error Providers, Validation, and locked Controls

Looked into it a bit more and figured out what the issue was. It appears as though without the Cancel attribute being set to true, the Validated event is triggered. So as soon as those lines are commented out, the error is set then immediately cleared when the Validated event triggers. So now I just...
by wlewis
Tue Mar 20, 2012 4:28 am
Forum: Windows PowerShell
Topic: Error Providers, Validation, and locked Controls
Replies: 7
Views: 1857

Error Providers, Validation, and locked Controls

Here is a basic example of what I'm working with. #---------------------------------------------- #region Application Functions #---------------------------------------------- function OnApplicationLoad {      return $true #return true for success or false for failure } function OnApplicationExit { ...
by wlewis
Mon Mar 19, 2012 9:29 am
Forum: PrimalForms
Topic: Packaged randomly builds non working executables
Replies: 10
Views: 5214

Packaged randomly builds non working executables

All files are stored locally. On the export issue, it seems to appear most often with datagridview controls. $gap_dgv_Results.AutoSizeColumnsMode = 'AllCells' $System_Windows_Forms_DataGridViewCellStyle_1 = New-Object 'System.Windows.Forms.DataGridViewCellStyle' $System_Windows_Forms_DataGridViewCel...
by wlewis
Mon Mar 19, 2012 6:52 am
Forum: PrimalForms
Topic: Packaged randomly builds non working executables
Replies: 10
Views: 5214

Packaged randomly builds non working executables

I have been experiencing the same issues with packaging. (building non-working executables, not cert issues) This happens on ~4 out of 5 attempts. Retrying (repeatedly) without changing any code or packaging preferences typically works. Same error returned every time. "Error: Saving updated resource...
by wlewis
Mon Mar 19, 2012 6:18 am
Forum: Windows PowerShell
Topic: Error Providers, Validation, and locked Controls
Replies: 7
Views: 1857

Error Providers, Validation, and locked Controls

I've started, recently, adding field validation to my scripts I've been creating using PrimalForms, and for the most part it's doing what I want it to do. (e.g. try to move to the next textbox while the data in the current one is invalid (or null) then trigger the error provider.) For some of these ...
by wlewis
Mon Mar 19, 2012 6:18 am
Forum: Windows PowerShell
Topic: Error Providers, Validation, and locked Controls
Replies: 7
Views: 1857

Error Providers, Validation, and locked Controls

I've started, recently, adding field validation to my scripts I've been creating using PrimalForms, and for the most part it's doing what I want it to do. (e.g. try to move to the next textbox while the data in the current one is invalid (or null) then trigger the error provider.) For some of these ...