Click here to Skip to main content
15,896,456 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i have been working with This Project for dynamic handling of controls the mentioned project is referenced in my vb.net application. The problem here i am facing is wiring control say button to class for dynamically moving and re-sizing of same blocks the mousedoubleclick event of button

Here i found one option either raise double click event from that reference project

so is it possible for c# project to raise mouseoubleclick event for control abd handle the same in another vb.net project
Posted
Comments
Sergey Alexandrovich Kryukov 18-Jan-16 12:50pm    
This is nonsense. There are no "projects" during runtime. There are applications, processes, assemblies...
You need to explain what exactly you want to achieve.
—SA

1 solution

Yes...but it's not generally a good idea. The problem is that DoubleClick is a "standard event" which you shouldn't be raising programmatically, as it's a "physical mouse" event and should be initiated by the user.
You can do it though: Processing Double Click on a TabPage Tab in WinForms[^] shows you how (using reflection to access the OnDoubleClick method).

Just be very, very sure that you need to do this!
 
Share this answer
 
Comments
Omkaara 18-Jan-16 9:14am    
but i think every .net button control has mousedoubleclick event i need to raise event in c# and handle it in vb.net to be specific mousedoubleclick event
OriginalGriff 18-Jan-16 11:05am    
And if you follow the link it tells you how to do it.
But raising a user event programmatically is very unusual, so be sure that it's a good idea...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900