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 thing is, the code for the event handlers is still there! and when I click to Add them, it creates duplicates, so I have 3 of a particular event handler ($btn_CredentialAdd_Click - for example).
Has anyone seen this behaviour?
Duplicate Event Handlers
Forum rules
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.
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 LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
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?
Some reference must be corrupted or broken somewhere. Any ideas?
Re: Duplicate Event Handlers
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!
Re: Duplicate Event Handlers
What kind of project are you using? (Multi-Form Project, Form Project, etc)
Is it only this form affected by this behavior?
Can you please upload the form with this behavior to the following location:
https://www.sapien.com/support/upload
Is it only this form affected by this behavior?
Can you please upload the form with this behavior to the following location:
https://www.sapien.com/support/upload
Brittney
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
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!
It is only this form which does it. It is a multi-form project. I have uploaded the form.
Thanks!
Re: Duplicate Event Handlers
I'm able to replicate the behavior you are experiencing with the form you uploaded, but I haven't been able to reproduce this on my own form. I will keep investigating and I'll post if I get any new information.
Brittney
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
Re: Duplicate Event Handlers
From looking at your form, I can see you are missing some closing braces. This seems be what is causing the weird behavior with the designer.
Some that I found:
- Line 1205
- Line 1866
Some that I found:
- Line 1205
- Line 1866
Brittney
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
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 behavior to start
Great catch.
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 behavior to start
Great catch.