Click here to Skip to main content
15,890,186 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello.

I have set the controls' tabulation order
in the designer opened for the "main" form of an AddIn,

and it works fine there,
the controls can be navigated by the Tab key in the designer...

...but there is no effect at the run time:
the focused control is not marked by the focus rectangle (1),

it is not possible to navigate the controls by the Tab key,
the focused control stays fixed (2).

Is there a way, please,
to "animate" a form of an VSTA2008 (C#) AddIn ? :)

Thank you !
Posted
Comments
Peter_in_2780 2-Aug-10 3:20am    
Dumb question: Do you have the TabStop property set on the problem control?
Eugen Podsypalnikov 2-Aug-10 3:27am    
Yes, I have set it (the TabStop property) to 'true' for the all forms controls.
(I have not the TabKeyDown event at the form too,
maybe it is blocked for the integrated (AddIn) context.
SelectNextControl(..) does move the input destination,
but without focus rectangle...)

1 solution

The error has been found:
the AddIn form must be shown by the .ShowDialog() function
(and not by the .Show()).

Now it is a "modal" form
with the "focus & tab" support :)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900