Hi Leo,
I am sorry for misunderstanding your meaning.
I think we can consider the OfficeCodeBehind assembly as a managed Addin
compared with the COM Addin, or the compiled MACRO compared with the VBA
macro.
For office 2003, the word or excel unmanaged COM DLL (OTkLoadr.dll) to load
the CLR and the CodeBehind assembly, and it will then called the _
Startup and _ShutDown method in the OfficeCodeBehind assembly, we can
consider it as the entrypoint of the OfficeCodeBehind assembly. So we do
not need to call the officecodebehind directly, when we open the word or
excel file, the codebehind dll associated with it will be loaded and
executed automatically.
We can display a winform in the codebehind as the links below.
Walkthrough: Collecting Data Using a Windows Form
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_wrcore/h
tml/wrwlkUsingWinFormToObtainUserInput.asp
Best regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! -
www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.