intercept only picturebox in frame1

User avatar
sal21
PlatinumLounger
Posts: 4351
Joined: 26 Apr 2010, 17:36

intercept only picturebox in frame1

Post by sal21 »

is this correct?

Code: Select all

Private Sub LOOP_PICTUREBOX()

Dim CNTRL As Control
For Each CNTRL In Controls
   If CNTRL.Container.Name = "Frame1" Then
   If CNTRL.Type = "PicrtureBox" Then Stop
   End If
Next

End Sub
nOTE:
In frame1 i can have also a labels

User avatar
HansV
Administrator
Posts: 78412
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: intercept only picturebox in frame1

Post by HansV »

"PicrtureBox" should be "PictureBox"
Best wishes,
Hans