From: Saga on 6 May 2010 12:00 Thanks! Saga "Armin Zingler" <az.nospam(a)freenet.de> wrote in message news:ePjlZhK7KHA.4804(a)TK2MSFTNGP02.phx.gbl... > Am 05.05.2010 21:25, schrieb Saga: >> Regarding your label control question, loop through all the controls, >> check to see if it a label then take corresponding action if it is. >> >> Something liekthis: >> >> For Each oCtrl As Control In Me.Controls >> >> 'Is this control a label? >> If oCtrl.GetType.ToString() = "System.Windows.Forms.Label" Then > > If typeof oCtrl is Label Then > > is safer and quicker. > >> oCtrl.Text = "whatever you need" >> End If >> >> Next > > > -- > Armin
First
|
Prev
|
Pages: 1 2 Prev: Add image over other images Next: Threading question - ensure execution of a block of code |