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.
我有一个面板,有标签、文本框等不同的属性,请问如何打印这个面板的内容?感谢所有帮助
输出到控制台或在打印机上打印?您可以像这样遍历面板内的控件:
Dim panelControl As System.Windows.Forms.Control For Each panelControl In Me.Panel1.Controls Console.WriteLine(panelControl.Text) Next