PC Review


Reply
Thread Tools Rate Thread

How to access all the textboxes inside a frame?

 
 
Yajiv
Guest
Posts: n/a
 
      26th Feb 2008
I have some 10 text boxes inside a frame. how can i iterate through
them?
 
Reply With Quote
 
 
 
 
john
Guest
Posts: n/a
 
      26th Feb 2008
something like following may do what you want:

Dim i As Integer
For i = 1 To 10
Controls("TextBox" & i).Text = i
Next
--
JB


"Yajiv" wrote:

> I have some 10 text boxes inside a frame. how can i iterate through
> them?
>

 
Reply With Quote
 
Rick Rothstein \(MVP - VB\)
Guest
Posts: n/a
 
      26th Feb 2008
This code will find each of them for you...

Dim C As Control
For Each C In Me.Controls
If C.Parent.Name = "Frame1" Then
If TypeName(C) = "TextBox" Then
'
' You found a TextBox inside Frame1
' Put your code for it here.
'
End If
End If
Next

Rick


"Yajiv" <(E-Mail Removed)> wrote in message
news:837c9c98-325e-4fb1-9259-(E-Mail Removed)...
>I have some 10 text boxes inside a frame. how can i iterate through
> them?


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I move existing textboxes onto a new frame? Chris K Microsoft Access Form Coding 1 18th Aug 2010 12:46 PM
Tabbing Inside of Textboxes Dennis Tucker Microsoft Excel Programming 2 12th Sep 2009 04:49 PM
Frame inside frame =?Utf-8?B?aXRoYXBwZW5z?= Microsoft Frontpage 2 13th Jun 2005 03:24 PM
How to have links outside an inline frame open a specific spot inside the inline frame....... WGS Microsoft Frontpage 1 20th Apr 2005 12:23 AM
Not printing the text inside textboxes =?Utf-8?B?QmFzaWw=?= Microsoft Word Document Management 5 24th May 2004 02:31 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:04 PM.