$MainForm_DragEnter Stops working after package project

This forum can be browsed by the general public. Posting is limited to current SAPIEN license holders with active maintenance and does not offer a response time guarantee.
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.
This topic is 11 years and 3 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
User avatar
mclanem
Posts: 10
Last visit: Mon Oct 26, 2015 1:52 pm

$MainForm_DragEnter Stops working after package project

Post by mclanem »

I am trying to create a little tool. In this I am using the DragEnter and DragDrop events on my MainForm. When I run this tool from Powershell Studio it works great assuming I set it to STA mode. After packaging the project these events stop working. I do have the "Run in STA Mode" checkbox checked when I create the package. What might be going wrong, and how can I get this to work?

Matt
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

$MainForm_DragEnter Stops working after package project

Post by davidc »

We will look into this matter and get back to you.

David
David
SAPIEN Technologies, Inc.
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

$MainForm_DragEnter Stops working after package project

Post by davidc »

I ran a quick test and it worked on my end (With STA enabled). What package platform/engine are you using?

David
David
SAPIEN Technologies, Inc.
User avatar
mclanem
Posts: 10
Last visit: Mon Oct 26, 2015 1:52 pm

$MainForm_DragEnter Stops working after package project

Post by mclanem »

I am running Powershell Studio 3.1.13 on Windows 8. The script is set to run in Powershell V2 in STA mode.

I see there is an upgrade to PowerShell Studio. I will try installing at update.

Matt
User avatar
mclanem
Posts: 10
Last visit: Mon Oct 26, 2015 1:52 pm

$MainForm_DragEnter Stops working after package project

Post by mclanem »

For the record, upgrading to 3.1.15 didn't fix the issue.

I will next try installing Powershell Studio on a different computer to see if that makes a difference. Maybe it is something with Windows 8.
User avatar
mclanem
Posts: 10
Last visit: Mon Oct 26, 2015 1:52 pm

$MainForm_DragEnter Stops working after package project

Post by mclanem »

Well, installing it on a Windows 7 machine didn't make a difference.
User avatar
Alexander Riedel
Posts: 8488
Last visit: Tue Apr 16, 2024 8:42 am
Answers: 20
Been upvoted: 37 times

$MainForm_DragEnter Stops working after package project

Post by Alexander Riedel »

Did you specify STA when packaging it? Enabling STA in PowerShell Studio does not automatically imply it is used when packaging to an executable.
Alexander Riedel
SAPIEN Technologies, Inc.
User avatar
mclanem
Posts: 10
Last visit: Mon Oct 26, 2015 1:52 pm

$MainForm_DragEnter Stops working after package project

Post by mclanem »

I checked the box. Is there something more I need to do to enable STA mode?
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

$MainForm_DragEnter Stops working after package project

Post by davidc »

If you can, please zip and email your form file (pff) to support@sapien.com. This way we can try to reproduce the issue on our end.

David
David
SAPIEN Technologies, Inc.
User avatar
mclanem
Posts: 10
Last visit: Mon Oct 26, 2015 1:52 pm

$MainForm_DragEnter Stops working after package project

Post by mclanem »

I believe I have resolved the issue by creating a new project and adding my pff file to it. Not sure what was messing up the executable but it is working now.
This topic is 11 years and 3 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.