User Profile

Collapse

Profile Sidebar

Collapse
nuhfeken
nuhfeken
Last Activity: Mar 14 '08, 06:09 PM
Joined: Sep 20 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • nuhfeken
    replied to C# WinForm: Simulate Right Mouse Click
    in .NET
    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...
    See more | Go to post

    Leave a comment:


  • nuhfeken
    replied to C# WinForm: Simulate Right Mouse Click
    in .NET
    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). ...
    See more | Go to post

    Leave a comment:


  • nuhfeken
    started a topic C# WinForm: Simulate Right Mouse Click
    in .NET

    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,...
    See more | Go to post
No activity results to display
Show More
Working...