Connecting Tech Pros Worldwide Forums | Help | Site Map

how to get controls inside a frame

Member
 
Join Date: Jan 2007
Location: Kerala/Dubai
Posts: 85
#1: Jan 17 '07
How to get the controls names inside a frame control or picture box
sukesh

Moderator
 
Join Date: Oct 2006
Location: Australia
Posts: 7,748
#2: Jan 17 '07

re: how to get controls inside a frame


Quote:

Originally Posted by sukeshchand

How to get the controls names inside a frame control or picture box

Try something like...
Expand|Select|Wrap|Line Numbers
  1. Dim ctl As Control
  2. For Each ctl In Me.Controls
  3.   If ctl.Container.Name = "the name of your frame" Then
  4.     Found one - do something
  5.   End If
  6. Next
  7.  
Reply