control referencing techniques

  • Thread starter Thread starter markh
  • Start date Start date
M

markh

Does anyone know where i could find a good website that explains many
techniques for direct control referencing?

thanks markh
 
markh said:
Does anyone know where i could find a good website that
explains many techniques for direct control referencing?

What do you mean with "direct control referencing"?
 
I would like to reference 10 text boxes in my form without the major
background processing caused by
For Each ctrl As Control In Me.Controls

If TypeOf ctrl Is TextBox Then DirectCast(ctrl, TextBox).Text = "abcdef"

Next

if there is a site i could goto to help me it would be very good

thanks in advance

markh
 
markh said:
I would like to reference 10 text boxes in my form without
the major background processing caused by


if there is a site i could goto to help me it would be very good

\\\
Private m_TextBoxes() As New TextBox() { _
Me.TextBox1, _
Me.TextBox2, _
..., _
Me.TextBox10 _
}
..
..
..
For Each TextBox As TextBox In m_TextBoxes
TextBox.Text = "Foo"
Next TextBox
///
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top