2
Contributors
2
Replies
4
Views
5 Years
Discussion Span
Last Post by afnan123456
0

Got the solution :)

Dim dispatcherTimer = New Threading.DispatcherTimer()

I changed declaration from above to

 Dim DispatcherTimer1 As New DispatcherTimer()

Can anybody tell me what is difference between these both declaration?
I am using .NET 3.5

1
 Dim dispatcherTimer = New Threading.DispatcherTimer()

Over here dispatcherTimer doesn't exist and you are setting it equal to a New Threading.DispatcherTimer() where as now

Dim DispatcherTimer1 As New DispatcherTimer()

you are creating it as a new dispatcher timer.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.