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.
私が使用する場合
MessageBox.Show(treeView1.SelectedNode.ToString());
結果はTreeNode: Bobです。
TreeNode: Bob
Bobなしで取得するにはどうすればよいTreeNodeですか?
Bob
TreeNode
近い:
treeView1.SelectedNode.Name
選択したノードも null かどうかを確認することができます。