> 実際は上記を参考に下記の様に書き開けてます > Dim Rbox() As Global.System.Windows.Forms.RichTextBox = > {RichTextBox1, RichTextBox2, RichTextBox3, RichTextBox4, RichTextBox5} 繰り返し使うのであれば、フィールド変数にしておいた方が良いかも。
Public Class Form1 Private Rbox As RichTextBox() Private Picture As PictureBox () Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load Rbox = {RichTextBox1, RichTextBox2, RichTextBox3, RichTextBox4, RichTextBox5} Picture = {PictureBox1, PictureBox2, PictureBox3, …, PictureBox15} End Sub End Class