R
Ria
Hello,
I've created a COM addin with VSTO and I'm using C# as language. The
COM-Addin interacts with Word. It all works great for one little thing.
I show dialogs (ShowDialog()) and when I press the ok button I want to do
some actions on the activedocument. Because I do not want to keep the form
visible when doing those actions. I want to hide the form.
I can do that with this.Visible=false. This works ok, but when this line is
executed, Word loses focus for a moment. That looks awfull. Word should keep
focus when this line is done.
(in the meantime i set the borderstyle to none and make the form transparant
and the height 0, and that works most of the time, but sometimes the actions
take up too much time and the titlebar is shown again, that too is not a
pretty sight).
Does anyone kwow how to solve this problem?
Thanx in advance.
I've created a COM addin with VSTO and I'm using C# as language. The
COM-Addin interacts with Word. It all works great for one little thing.
I show dialogs (ShowDialog()) and when I press the ok button I want to do
some actions on the activedocument. Because I do not want to keep the form
visible when doing those actions. I want to hide the form.
I can do that with this.Visible=false. This works ok, but when this line is
executed, Word loses focus for a moment. That looks awfull. Word should keep
focus when this line is done.
(in the meantime i set the borderstyle to none and make the form transparant
and the height 0, and that works most of the time, but sometimes the actions
take up too much time and the titlebar is shown again, that too is not a
pretty sight).
Does anyone kwow how to solve this problem?
Thanx in advance.