Hi all

I'm just struggling a little with the transfer from VB6 to DotNet and hope
someone can assist me with a small problem.

I have a track bar and want to call a command button each time the track bar
is moved to a certain position (as if the user had clicked the cmdCalculate
button)

Private Sub trkIndex_ValueChanged(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles trkIndex.ValueChanged

txtIndex.Text = Format(trkIndex.Value / 1000, "0.000")

'The code to fire the click event would go here

End Sub

Any help greatly appreciated as i'm under pressure to get this finished.



Thanks



Jem

Re: How do I call procedure? by Jem

Jem
Sun Nov 26 07:40:35 CST 2006

Ah Haaaa... :-)

Sorted it now. Can't believe I wasn't doing it quite right - Ah well.

Cheers

Jem


"Jem" <news@vision-value.co.uk> wrote in message
news:oq2dna1RzJeMP_jYRVnyvg@bt.com...
> Hi all
>
> I'm just struggling a little with the transfer from VB6 to DotNet and hope
> someone can assist me with a small problem.
>
> I have a track bar and want to call a command button each time the track
> bar is moved to a certain position (as if the user had clicked the
> cmdCalculate button)
>
> Private Sub trkIndex_ValueChanged(ByVal sender As System.Object, ByVal e
> As System.EventArgs) Handles trkIndex.ValueChanged
>
> txtIndex.Text = Format(trkIndex.Value / 1000, "0.000")
>
> 'The code to fire the click event would go here
>
> End Sub
>
> Any help greatly appreciated as i'm under pressure to get this finished.
>
>
>
> Thanks
>
>
>
> Jem
>
>