Hi Quelyn , I don't think there's a way to get the code of an original component.
Normally you'll need to look at the functionality and create freemarker/api calls to recerate that.
Which menu component are you overriding?
If it's within a forum post you an just write your code to get the message id of the parent post and link to the TKB form from there.
If it's within the TKB drafts section for nominated posts it'll be a little more work to replace the individual rows generated from topics.
The former is much easier to do, it'll just come down to where you insert the component. I've never inserted one into the menu list dropdown sorry. Only added a new button for things :)
Tim