Message 1 of 1
OnSelect Event, which one to use?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I'm wrapping up my custom AddIn creation and getting ready to release it. As I am reading my code for the ( possibly ) the last time, I found something interesting which should have my attention.
My AddIn works based on user selection of items. When the user selects an object the most relevant ( for us ) iProperties are shown in a custom browser along with some other custom functions based on the selected object.
Now to catch the event for the user selection I am currently using this method. Which taps into the UserInputEvents
' User Input events object. Private WithEvents oUserInputEvent As UserInputEvents Private Sub OnDocumentSelectedEvent() Handles oUserInputEvent.OnSelect, oUserInputEvent.OnUnSelect dc.GetCurrentDocumentDescription() End Sub
But.. I see that I could also use the SelectEvents.
' User Input events object. Private WithEvents oSelectEvents As SelectEvents Private Sub OnDocumentSelectedEvent() Handles oSelectEvents.OnSelect, oSelectEvents.OnUnSelect dc.GetCurrentDocumentDescription() End Sub
What is the difference between these two methods? Or are they the same?
Please kudo if this post was helpfull
Please accept as solution if your problem was solved
Inventor 2014 SP2