Well, because I inherited the project. That is why. LOL!
In their defense, the application is a rather complex, large application (UI layout is similer to Microsoft Outlook) with a ton of controls and no popup forms/separate forms. Minus some minor complexity and the occasional weird problem like this one I think the alternative might of been even scarier. A spaghetti-code nightmare with insane amounts of duplicate code, near...
User Profile
Collapse
-
Well, I learned some more yesterday on this. I still haven't fixed the underlying problem which is a control won't release the mouse, which forces someone to click any other control (other than the one already selected) twice. Once to activate or set the focus to it, again to click the control. That is the underlying problem which I had hoped to fix by simulating a right mouse click (a horrible solution but the only one that seemed to work). ...Leave a comment:
-
C# WinForm: Simulate Right Mouse Click
We have a C# winform that uses the MVP design pattern for the user interface. For reasons I'd rather not explain we need to simulate a right mouse click on a specific control to deactivate the control. I found code that almost does what we need.
[DllImport("user 32.dll")]
private static extern void mouse_event(
UInt32 dwFlags, // motion and click options
UInt32 dx,...
No activity results to display
Show More
Leave a comment: