Click here to Skip to main content
15,889,442 members
Home / Discussions / C#
   

C#

 
AnswerRe: zooming Pin
Pete O'Hanlon26-Nov-14 23:29
mvePete O'Hanlon26-Nov-14 23:29 
GeneralRe: zooming Pin
Member 1038315928-Nov-14 8:39
Member 1038315928-Nov-14 8:39 
GeneralRe: zooming Pin
Eddy Vluggen28-Nov-14 9:19
professionalEddy Vluggen28-Nov-14 9:19 
AnswerRe: zooming Pin
V.27-Nov-14 1:55
professionalV.27-Nov-14 1:55 
QuestionRemove Dynamically Created Controls Pin
Django_Untaken26-Nov-14 1:58
Django_Untaken26-Nov-14 1:58 
AnswerRe: Remove Dynamically Created Controls Pin
OriginalGriff26-Nov-14 2:38
mveOriginalGriff26-Nov-14 2:38 
AnswerRe: Remove Dynamically Created Controls Pin
BillWoodruff26-Nov-14 9:58
professionalBillWoodruff26-Nov-14 9:58 
QuestionImage source BitmapImage update problem Pin
massisoda25-Nov-14 22:40
massisoda25-Nov-14 22:40 
Hello all,
I have a little problem.
I have a picture on a WPF window and I would like to update it,when an event is fired(the event is fired after the picture file is update).
The code below,is in the callback of the event,and work only the first time,after the second time is fired the picture visualization is not updated(that means that the displayed picture does not change but the file BMP is overwrited correctly in the folder).

if (File.Exists(@"C:\\Temp\\LivePictures\\pic.BMP"))
    {
      Dispatcher.Invoke((Action)(() =>
      {
        BitmapImage bmi = new BitmapImage();
        bmi.BeginInit();
        bmi.UriSource = new Uri(@"C:\\Temp\\LivePictures\\pic.BMP");
        bmi.CacheOption = BitmapCacheOption.OnLoad;
        bmi.EndInit();
        imgOrientation.Source = bmi;
      }));
    }



Any suggestion?
Any help is appreciated

Thanks
AnswerRe: Image source BitmapImage update problem Pin
M.Scheeren1-Dec-14 22:48
professionalM.Scheeren1-Dec-14 22:48 
Questionhow to retrieve only date from datetime from database Pin
Member 1126447925-Nov-14 18:54
Member 1126447925-Nov-14 18:54 
AnswerRe: how to retrieve only date from datetime from database Pin
Pete O'Hanlon25-Nov-14 19:20
mvePete O'Hanlon25-Nov-14 19:20 
SuggestionRe: how to retrieve only date from datetime from database Pin
Richard Deeming26-Nov-14 1:37
mveRichard Deeming26-Nov-14 1:37 
QuestionWindows mobile App with VS2013 C# Pin
Member 1068390225-Nov-14 8:22
Member 1068390225-Nov-14 8:22 
AnswerRe: Windows mobile App with VS2013 C# Pin
Richard MacCutchan25-Nov-14 22:24
mveRichard MacCutchan25-Nov-14 22:24 
GeneralRe: Windows mobile App with VS2013 C# Pin
Member 1068390226-Nov-14 9:58
Member 1068390226-Nov-14 9:58 
QuestionC sharp Pin
Sarita S24-Nov-14 23:50
Sarita S24-Nov-14 23:50 
AnswerRe: C sharp Pin
den2k8825-Nov-14 0:00
professionalden2k8825-Nov-14 0:00 
GeneralRe: C sharp Pin
Sarita S25-Nov-14 0:10
Sarita S25-Nov-14 0:10 
GeneralRe: C sharp Pin
den2k8825-Nov-14 0:24
professionalden2k8825-Nov-14 0:24 
GeneralRe: C sharp Pin
Nicholas Marty25-Nov-14 0:28
professionalNicholas Marty25-Nov-14 0:28 
GeneralRe: C sharp Pin
Sarita S25-Nov-14 0:35
Sarita S25-Nov-14 0:35 
GeneralRe: C sharp Pin
Eddy Vluggen25-Nov-14 0:20
professionalEddy Vluggen25-Nov-14 0:20 
AnswerRe: C sharp Pin
Eddy Vluggen25-Nov-14 0:21
professionalEddy Vluggen25-Nov-14 0:21 
AnswerRe: C sharp Pin
Simon_Whale25-Nov-14 0:23
Simon_Whale25-Nov-14 0:23 
AnswerRe: C sharp Pin
OriginalGriff25-Nov-14 0:24
mveOriginalGriff25-Nov-14 0:24 

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.