Torben,
Is the showing of the form the first thing that is done when your COM
object is loaded? There are a few things that I can think of that are going
on here. The first is that the showing of the form is the first time your
COM object is referenced, and that causes the CLR to spool up, which is
going to have some overhead.
Also, if showing the form is the first operation that you are doing, is
there any initialization in the form, or in the add-in that could be
accounting for this?
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"Torben Laursen" <To****@newsgroups.nospamwrote in message
news:OM**************@TK2MSFTNGP05.phx.gbl...
>I have a COM shared add-in written in C# that I use in Excel.
One of the thinks that the user can do is to open some winforms.
The problem that I have is that the first time the user opens a winform it
is slow around 7 seconds and after that it takes no time.
Is there a way to speed up the process to show the winform the first time?
Thanks Torben