VSTA(C#)加载项:窗体的焦点矩形在哪里? :) [英] VSTA (C#) AddIn: Where is the form's focus rectangle ? :)

查看:113
本文介绍了VSTA(C#)加载项:窗体的焦点矩形在哪里? :)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好.

我已设置控件的制表顺序
在为AddIn的主要"形式打开的设计器中,

而且在那里工作正常,
控件可以通过设计器中的Tab键进行导航...

...但是在运行时没有效果:
焦点控件未用焦点矩形(1)标记,

无法使用Tab键浏览控件,
焦点控件保持固定(2).

有没有办法,请
来动画化" VSTA2008(C#)加载项的形式? :)

谢谢!

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 !

推荐答案

已发现错误:
AddIn表单必须由.ShowDialog()函数显示
(,而不是.Show() ).

现在是模态"形式
具有焦点和标签"支持:)
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 :)


这篇关于VSTA(C#)加载项:窗体的焦点矩形在哪里? :)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆