Home All Groups Group Topic Archive Search About

Binding Controls to Controls

Author
29 Mar 2005 12:17 AM
MeltingPoint
Quick question:
Can you bind the Value of a TrackBar to the Text of a Label?
MSDN didn't reveal anything in the hour or so I spent looking:)

Author
29 Mar 2005 9:12 AM
Cor Ligthert
Melting Point,


Me.TextBox1.DataBindings.Add("Text", Me.TrackBar1, "Value")

I hope this helps,

Cor
Author
29 Mar 2005 10:26 PM
MeltingPoint
"Cor Ligthert" <notmyfirstn***@planet.nl> wrote in news:ezSY79DNFHA.3928
@TK2MSFTNGP09.phx.gbl:

> Melting Point,
>
>
> Me.TextBox1.DataBindings.Add("Text", Me.TrackBar1, "Value")
>
> I hope this helps,
>
> Cor
>
>
>

Thanks Cor, you wouldn't believe me if I told you how long I spent looking
through MSDN for that!!!