is it possible to add .net controls to the drawing view


Author
Message
Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K
You need to subscribe to the events of the WinForm controls directlly. If you intend to make a library that contains shapes that contains hosted controls, you need to subscribe to the WinForm control events when the respective shape is added to the drawing document. You can intercept the NodeInserted event (see Diagram for .NET > User's Guide > Conceptual Overview > Diagram Services for more info on Diagram events), and then hook the events that you want for the specific control that is contained inside the NWinFormControlHostShape.

Best Regards,
Nevron Support Team


ginnas k
ginnas k
Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)
Group: Forum Members
Posts: 13, Visits: 1
hello

thanks for the response,that method for adding controls to the drawing view is working. one more thing after adding these controls on the drawing view is it possible to get the events for these controls, means by any way we needed to write some code inside these controls events, any idea about this to achieve

please replay me

regards
ginnas
Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K

Hello ginnas,

You can take a look at the following example:

Diagram WinForm examples >> Document Object model >> Shapes >> WinForm Control Hosting

Best Regards,
Nevron Support Team


ginnas k
ginnas k
Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)
Group: Forum Members
Posts: 13, Visits: 1
hello

i am using your drawing view as my design container at run time. so i wanted to add different .net controls on this drawing view, is it possible to add these controls on it, once we add is it possible to do the default nevron functionalities on them like cut, copy, paste, move etc. please explain how it is


regards
ginnas
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search