Re: MouseUp in ActiveX - works in IDE but not in exe
Originally Posted by AlexanderSupertramp
@---
@Jonny: I am not having many loops in the code. And loops are called at:
....
2> MouseWheel Scroll
So they should not conflict with MouseMove events. am i correct?
Is this a loop for listening ? Can you switch of this one for testing reasons so it would not run ?
Jonny Poet
To be Alive is depending on the willingsness to help others and also to permit others to help you. So lets be alive. !
Using Code Tags makes the difference: Code is easier to read, so its easier to help. Do it like this: [CODE] Put Your Code here [/code]
If anyone felt he has got help, show it in rating the post.
Also dont forget to set a post which is fully answered to 'resolved'. For more details look to FAQ's about Forum Usage. BTW I'm using Framework 3.5 and you ? My latest articles : Creating a Dockable Panel-Controlmanager Using C#, Part 1 | Part 2 | Part 3 | Part 4 | Part 5 | Part 6 | Part 7
Re: MouseUp in ActiveX - works in IDE but not in exe
Since the events of the UserControl fully cover what a PictureBox can do, there really isn't any advantage in also using a PictureBox for your purpose, IMO. And if this resolves the event problem, it'd be worth trying.
If the UserControl is being subclassed, that might explain the interference with the Public event. Though I can't say for certain how the dll you're using may be impacting it, I do know the other method I referred to doesn't cause such a problem.
One thing to try, is to turn off the subclassing, and see if the MouseUp event works. Then you'll know if that's part of the problem.
Feel free to post any part of the project you want, but a mouse event is fairly straight-forward, so there's not much to examine there. I still think it's due to the subclassing.
Please remember to rate the posts and threads that you find useful.
How can something be both new and improved at the same time?
Re: MouseUp in ActiveX - works in IDE but not in exe
Hello Guys.
@Jonny: Oh I tried to use the OCX ina simpler project. Just drag n dropn the control, and process MouseMove to display X and Y values in textboxes. No loops. Still the same problem. The text boxes are updated only in the MouseClicks as opposed to MouseMoves.
@dglienna: My resolution is already 1024 x 768. I'll try with 800x600. Is the text in ur post
incomplete?
@WizBang: I have already tried commenting all the sub classing code. It does not matter.
I'll post the simpler app with a setup here.
Now after these conversations, I think it has do with something like exposing or calling events? Something like passing parameters????
Re: MouseUp in ActiveX - works in IDE but not in exe
hey Guys.
Here's the code. Please put SSubTmr6.dll in System32 and register with regsvr32.exe.
I have commented the subclassing code, it is in the class module. The commented subclassing code is bookmarked. I have also added the class module with subclassing uncommented, but outside project.
The app is as simple as it can get. It runs in IDE but not outside.
The code is not extensively commented, but mostly it is. And no algos for Reimann Hypothesis, just standard things are there inside.
Re: MouseUp in ActiveX - works in IDE but not in exe
OK, the first thing I see is that the control doesn't have Option Explicit. This is always a good idea, and you can set the IDE to automatically add it to the top of every new module.
Well, there was a lot of scroll mouse stuff to comment out before it would run without flagging some problem. But once I got them all, it ran, and the MouseUp even fired both within the IDE and compiled. I did not include the dll or any other files. I just compiled the control directly into an exe.
Please remember to rate the posts and threads that you find useful.
How can something be both new and improved at the same time?
Re: MouseUp in ActiveX - works in IDE but not in exe
Originally Posted by WizBang
OK, the first thing I see is that the control doesn't have Option Explicit. This is always a good idea, and you can set the IDE to automatically add it to the top of every new module.
Well, there was a lot of scroll mouse stuff to comment out before it would run without flagging some problem. But once I got them all, it ran, and the MouseUp even fired both within the IDE and compiled. I did not include the dll or any other files. I just compiled the control directly into an exe.
OK if you already did it I can spare my time for other requests
But I cannot see it posted here. Dis you sent it to him by email ?
Jonny Poet
To be Alive is depending on the willingsness to help others and also to permit others to help you. So lets be alive. !
Using Code Tags makes the difference: Code is easier to read, so its easier to help. Do it like this: [CODE] Put Your Code here [/code]
If anyone felt he has got help, show it in rating the post.
Also dont forget to set a post which is fully answered to 'resolved'. For more details look to FAQ's about Forum Usage. BTW I'm using Framework 3.5 and you ? My latest articles : Creating a Dockable Panel-Controlmanager Using C#, Part 1 | Part 2 | Part 3 | Part 4 | Part 5 | Part 6 | Part 7
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.