Click here to Skip to main content
15,887,214 members
Home / Discussions / C#
   

C#

 
GeneralRe: Prevent My Email go to bulk Pin
Not Active14-Nov-09 2:13
mentorNot Active14-Nov-09 2:13 
GeneralRe: Prevent My Email go to bulk Pin
Dave Kreskowiak14-Nov-09 10:55
mveDave Kreskowiak14-Nov-09 10:55 
GeneralRe: Prevent My Email go to bulk Pin
mahdi_h8414-Nov-09 18:49
mahdi_h8414-Nov-09 18:49 
GeneralRe: Prevent My Email go to bulk Pin
mahdi_h8414-Nov-09 21:16
mahdi_h8414-Nov-09 21:16 
GeneralRe: Prevent My Email go to bulk Pin
Dave Kreskowiak15-Nov-09 10:48
mveDave Kreskowiak15-Nov-09 10:48 
QuestionUpdating weather using Threading Pin
Etienne_12314-Nov-09 0:28
Etienne_12314-Nov-09 0:28 
AnswerRe: Updating weather using Threading Pin
kstls14-Nov-09 0:48
kstls14-Nov-09 0:48 
GeneralRe: Updating weather using Threading Pin
Etienne_12314-Nov-09 1:38
Etienne_12314-Nov-09 1:38 
Thanks. I'll go through that now.

I tried using a DispatcherTimer like in the following code:

// Create a Timer with a Normal Priority
DispatcherTimer _timer = new DispatcherTimer(DispatcherPriority.Normal);

// Set the Interval to 2 seconds
_timer.Interval = TimeSpan.FromMilliseconds(2000);

// Set the callback to just show the time ticking away
// NOTE: We are using a control so this has to run on
// the UI thread
_timer.Tick += new EventHandler(delegate(object s, EventArgs a)
{
    UpdateWeather();
});

// Start the timer
_timer.Start();


I've tried about 4 different ways of using the Dispatcher, but no matter what I try, my UI keeps freezing while it's doing UpdateWeather. Can it be because I call this Timer from my form_Loaded event??
AnswerRe: Updating weather using Threading Pin
Luc Pattyn14-Nov-09 2:09
sitebuilderLuc Pattyn14-Nov-09 2:09 
JokeRe: Updating weather using Threading Pin
Mycroft Holmes14-Nov-09 2:21
professionalMycroft Holmes14-Nov-09 2:21 
GeneralRe: Updating weather using Threading Pin
Luc Pattyn14-Nov-09 3:00
sitebuilderLuc Pattyn14-Nov-09 3:00 
AnswerRe: Updating weather using Threading [modified] Pin
Etienne_12314-Nov-09 2:33
Etienne_12314-Nov-09 2:33 
QuestionTypeAhead Pin
sparlay_pk13-Nov-09 22:56
sparlay_pk13-Nov-09 22:56 
AnswerRe: Ignore CrossPost Pin
kstls14-Nov-09 0:39
kstls14-Nov-09 0:39 
GeneralRe: Ignore CrossPost Pin
sparlay_pk14-Nov-09 0:56
sparlay_pk14-Nov-09 0:56 
GeneralRe: Ignore CrossPost Pin
kstls14-Nov-09 1:07
kstls14-Nov-09 1:07 
QuestionTABPAGE Pin
sachees12313-Nov-09 20:16
sachees12313-Nov-09 20:16 
AnswerRe: TABPAGE Pin
Shameel13-Nov-09 21:26
professionalShameel13-Nov-09 21:26 
AnswerRe: TABPAGE Pin
OriginalGriff13-Nov-09 21:56
mveOriginalGriff13-Nov-09 21:56 
GeneralRe: TABPAGE Pin
sachees12313-Nov-09 22:27
sachees12313-Nov-09 22:27 
GeneralRe: TABPAGE Pin
OriginalGriff13-Nov-09 23:36
mveOriginalGriff13-Nov-09 23:36 
GeneralRe: TABPAGE Pin
sachees12314-Nov-09 20:43
sachees12314-Nov-09 20:43 
GeneralRe: TABPAGE Pin
OriginalGriff14-Nov-09 21:51
mveOriginalGriff14-Nov-09 21:51 
GeneralRe: TABPAGE Pin
sachees12314-Nov-09 21:50
sachees12314-Nov-09 21:50 
GeneralRe: TABPAGE Pin
OriginalGriff14-Nov-09 21:58
mveOriginalGriff14-Nov-09 21:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.