Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
プライベート配列がTabPage[] tp = new TabPage[10]ありますが、選択したタブのインデックス (タブ インデックスではなく配列インデックス)を 取得するにはどうすればよいですか?
TabPage[] tp = new TabPage[10]
配列インデックスとタブ インデックスの違い
例:タブを選択しました。配列インデックスは 1 でも構いませんが、情報は tp[8] に含まれています
var SelectedArrayTabIndex = Array.IndexOf(tp, SelectedTab);