0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

【VB.NET】TableRayOutPanelの使い方

Posted at

TableRayOutPanelとは

  • HTMLのtableタグのように、表を作成できる。
  • 列や行も自由に追加削除できる。
  • セルには1つのコントロールを埋め込むことが可能。
    • コントロールを埋め込む場合は、デザイナー画面でコントロールを選択し、オプションで"Dock"を"Fill"にする。

image.png
image.png


TableRayOutPanelの注意点

1つのセルに対して1つのコントロールしか埋め込めない。

1つのセルに複数のコントロールを配置する方法

セルにPanelコントロールを埋め込み、その上にコントロールを置く。
image.png

↓ 説明のイメージ
image.png


TabIndexの設定

TabIndexを設定する場合は、TableRayOutPanelに埋め込んだコントロールに対してTabIndexを設定すると意図した動作になる。
例:TableRayoutPanelにPanelを埋め込み、その上にTextboxを配置している場合

  • TableRayOutPanelのTabIndex:0 or 1
  • PanelのTabIndex:フォーカスを移動したい順番で数字を振る。
  • TextBoxのTabIndex:Panelに設定した数字より大きい数字を振る。(Panelより大きい数字を振ることでフォーカスが当たるのをあとにする。)

↓タブオーダーの例
image.png
例:0.1.1
・TableRayOutPanelのTabIndex:0
・PanelのTabIndex:1
・TextboxのTabIndex:1


参考サイト

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?