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.
我正在用visual basic编写一个程序(在windows窗体应用程序模式下),我在这个程序中有两个图片框,我希望它们是一个数组,比如p[0]and p[1],在visual basic中可以吗?
p[0]
p[1]
你可以制作一个你想要的任何东西的数组,包括一个 PictureBoxes 数组......很久没有使用 VB.Net,但如果我没记错语法:
Imports System.Windows.Forms .... Dim arr As System.Windows.Forms.PictureBox() = New PictureBox(2) {} arr(0) = New PictureBox() arr(1) = New PictureBox()