コード内の do while ループを変数 z で動作させるにはどうすればよいですか?
Function make(ByVal z As Object)
z.Location = zloc
z.Hide()
zloc = New Point(RandomNumber(playspace.Width), RandomNumber(playspace.Height))
If zloc.Y > 595 Then
zloc = New Point(RandomNumber(playspace.Width), RandomNumber(playspace.Height))
End If
z.location = zloc
Do While z.bounds.intersectswith(PictureBox1.Bounds, PictureBox2.Bounds, PictureBox3.Bounds)
zloc = New Point(RandomNumber(playspace.Width), RandomNumber(playspace.Height))
z.location = zloc
Loop
z.Location = zloc
z.Show()
Return (z)
End Function
問題は、変数で「.bounds.intersectswith」を使用できないことです。