0

OL&VS 2010を使用しています。フォーム領域をVSで直接設計すると、FormRegion.Designer.csファイルには次のような定義が含まれます。

this.SomeButton = new System.Windows.Forms.Button();

ただし、OLで設計されてインポ​​ートされた場合、定義は次のとおりです。

this.SomeButton = (Microsoft.Office.Interop.Outlook.OlkCommandButton)GetFormRegionControl("SomeButton");

私の問題は、aにはプログラムで設定できるプロパティがありますが、aにSystem.Windows.Forms.Buttonはないということです。TabIndexMicrosoft.Office.Interop.Outlook.OlkCommandButton

どうすればOlkCommandButton'sを変更できTabIndexますか?

4

1 に答える 1

0

にをキャストして、その方法で要素にアクセスすることができMicrosoft.Office.Interop.Outlook.OlkCommandButtonましMicrosoft.Vbe.Interop.Forms.ControlTabIndex

編集-確認済み:http://blogs.msdn.com/b/rgregg/archive/2007/10/01/common-properties-on-outlook-controls.aspx

于 2011-05-25T20:36:45.137 に答える