Search found 16 matches

by matthmsft
Fri Sep 06, 2019 1:33 pm
Forum: PowerShell Studio
Topic: Duplicate Event Handlers
Replies: 7
Views: 397

Re: Duplicate Event Handlers

Hi Thanks, I didn't see the 1205 brace but I see the 1866. That was re-jigged before the problem started, but the syntax highlighter didn't catch it. I have added the 1866 curly brace and the problem seems to have stopped now. Seems to be that 1 curly brace that the highlighter missed that cause the...
by matthmsft
Fri Sep 06, 2019 7:11 am
Forum: PowerShell Studio
Topic: Duplicate Event Handlers
Replies: 7
Views: 397

Re: Duplicate Event Handlers

Hi
It is only this form which does it. It is a multi-form project. I have uploaded the form.

Thanks!
by matthmsft
Fri Sep 06, 2019 5:05 am
Forum: PowerShell Studio
Topic: Duplicate Event Handlers
Replies: 7
Views: 397

Re: Duplicate Event Handlers

duplicates.PNG
duplicates.PNG (69.15 KiB) Viewed 392 times
Here are the duplicates being generated each time I click into Designer view. The original event handlers with code is still in place further up the project!
by matthmsft
Fri Sep 06, 2019 4:46 am
Forum: PowerShell Studio
Topic: Duplicate Event Handlers
Replies: 7
Views: 397

Re: Duplicate Event Handlers

This is super crazy, even once I click to create them and they are duplicated, if I go back to the Designer view, the popups appear again that the events are missing still and it creates even more!

Some reference must be corrupted or broken somewhere. Any ideas?
by matthmsft
Fri Sep 06, 2019 4:38 am
Forum: PowerShell Studio
Topic: Duplicate Event Handlers
Replies: 7
Views: 397

Duplicate Event Handlers

Product: PowerShell Studio 2019 (64 Bit) Build: v5.6.167 OS: Windows 10 Enterprise (64 Bit) Build: v10.0.18362.0 Crazy thing has just started happening. In a form on my project, I have started getting prompts for missing event handlers for buttons and lists and would I like to create them. The odd t...
by matthmsft
Thu Aug 22, 2019 4:35 pm
Forum: PowerShell GUIs
Topic: Is it possible to dynamically generate event code?
Replies: 3
Views: 187

Re: Is it possible to dynamically generate event code?

That's awesome, thank you, I will try it out today!
by matthmsft
Thu Aug 22, 2019 9:58 am
Forum: PowerShell GUIs
Topic: Is it possible to dynamically generate event code?
Replies: 3
Views: 187

Is it possible to dynamically generate event code?

Hi folks I am trying to think through how it would be possible to dynamically generate events for dynamically generated controls. For example, I would like to have an XML file which has the different options I want to dynamically load into an options page. I have managed to do this and create a Labe...
by matthmsft
Tue Aug 20, 2019 5:50 am
Forum: PowerShell Studio
Topic: Unhandled Exception when using the Close() method on a Form
Replies: 3
Views: 731

Re: Unhandled Exception when using the Close() method on a Form

Got it! Your post pointed me in the right direction, thank you!

The problem wasn't the form close event, it was what happened immediately after the event when we returned to the main form, there was a broken XML filter.

Thanks!!
by matthmsft
Tue Aug 20, 2019 5:40 am
Forum: PowerShell Studio
Topic: Unhandled Exception when using the Close() method on a Form
Replies: 3
Views: 731

Re: Unhandled Exception when using the Close() method on a Form

Thanks for the pointer. It was working before but perhaps maybe that event got removed. I re-added it back and now my cancel button works fine, but my OK button doesn't, still has the exception message. Odd. $btn_ManualAttestCancel_Click={ $paramWriteLogEntry = @{ logMessage = "btn_ManualAttestCance...
by matthmsft
Sun Aug 18, 2019 8:27 pm
Forum: PowerShell Studio
Topic: Unhandled Exception when using the Close() method on a Form
Replies: 3
Views: 731

Unhandled Exception when using the Close() method on a Form

Product: PowerShell Studio 2019 (64 Bit) Build: v5.6.167 OS: Windows 10 Enterprise (64 Bit) Build: v10.0.18362.0 I have a button in my application which allows the user to attest to an action being manually completed. The code is as follows: $btn_ManualAttestOK_Click={ $paramWriteLogEntry = @{ logMe...