By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,758 Members | 1,225 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,758 IT Pros & Developers. It's quick & easy.

control referencing techniques

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

thanks markh
Nov 21 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
"markh" <f> schrieb:
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"?

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 21 '05 #2

P: n/a
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
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:eB*************@TK2MSFTNGP09.phx.gbl... "markh" <f> schrieb:
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"?

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Nov 21 '05 #3

P: n/a
"markh" <f> schrieb:
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


\\\
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
///

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.