Click here to Skip to main content
15,888,454 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to change Font in Word by C# Pin
naylynn25-Oct-15 11:10
naylynn25-Oct-15 11:10 
QuestionCheck Remote Computer Windows Services Pin
Jassim Rahma21-Oct-15 23:07
Jassim Rahma21-Oct-15 23:07 
AnswerRe: Check Remote Computer Windows Services Pin
Richard Deeming22-Oct-15 2:48
mveRichard Deeming22-Oct-15 2:48 
QuestionKeyDown for Form and all its Controls Pin
Jassim Rahma21-Oct-15 12:28
Jassim Rahma21-Oct-15 12:28 
AnswerRe: KeyDown for Form and all its Controls Pin
BillWoodruff21-Oct-15 15:02
professionalBillWoodruff21-Oct-15 15:02 
AnswerRe: KeyDown for Form and all its Controls Pin
Dave Kreskowiak21-Oct-15 17:15
mveDave Kreskowiak21-Oct-15 17:15 
AnswerRe: KeyDown for Form and all its Controls Pin
John Torjo21-Oct-15 23:18
professionalJohn Torjo21-Oct-15 23:18 
SuggestionRe: KeyDown for Form and all its Controls Pin
Foothill23-Oct-15 10:20
professionalFoothill23-Oct-15 10:20 
If you are using WPF and do find that you need to add an intercept for pressing F5 for all your controls on the page, this code should work, just pass in the reference to the Window's main panel (grid, canvas, etc...)

C#
public static void AddF5CaptureEvent(Panel mainContentContainer)
{
  foreach (UIElement child in mainContentContainer.Children)
  {
    child.PreviewKeyDown += (s, e) => { if (e.Key == Key.F5) { InterceptFunction() } };

    if (child is Panel)
    {
      AddF5CaptureEvent(child);
    }
  }
}

Questionc# Pin
Member 1061105521-Oct-15 8:11
Member 1061105521-Oct-15 8:11 
GeneralRe: c# Pin
harold aptroot21-Oct-15 8:42
harold aptroot21-Oct-15 8:42 
AnswerRe: c# Pin
cvogt6145721-Oct-15 8:48
cvogt6145721-Oct-15 8:48 
Questionthread safe log class with simple functionality Pin
Member 1206160021-Oct-15 5:57
Member 1206160021-Oct-15 5:57 
AnswerRe: thread safe log class with simple functionality Pin
BillWoodruff21-Oct-15 7:08
professionalBillWoodruff21-Oct-15 7:08 
GeneralRe: thread safe log class with simple functionality Pin
Member 1206160021-Oct-15 7:36
Member 1206160021-Oct-15 7:36 
GeneralRe: thread safe log class with simple functionality Pin
BillWoodruff21-Oct-15 7:45
professionalBillWoodruff21-Oct-15 7:45 
GeneralRe: thread safe log class with simple functionality Pin
Member 1206160021-Oct-15 7:51
Member 1206160021-Oct-15 7:51 
GeneralRe: thread safe log class with simple functionality Pin
BillWoodruff21-Oct-15 7:58
professionalBillWoodruff21-Oct-15 7:58 
GeneralRe: thread safe log class with simple functionality Pin
Member 1206160021-Oct-15 8:29
Member 1206160021-Oct-15 8:29 
AnswerRe: thread safe log class with simple functionality Pin
Richard Deeming21-Oct-15 8:09
mveRichard Deeming21-Oct-15 8:09 
GeneralRe: thread safe log class with simple functionality Pin
Member 1206160021-Oct-15 8:16
Member 1206160021-Oct-15 8:16 
GeneralRe: thread safe log class with simple functionality Pin
Richard Deeming21-Oct-15 9:06
mveRichard Deeming21-Oct-15 9:06 
GeneralRe: thread safe log class with simple functionality Pin
Member 1206160021-Oct-15 9:33
Member 1206160021-Oct-15 9:33 
GeneralRe: thread safe log class with simple functionality Pin
Richard Deeming22-Oct-15 2:01
mveRichard Deeming22-Oct-15 2:01 
GeneralRe: thread safe log class with simple functionality Pin
Member 1206160022-Oct-15 5:24
Member 1206160022-Oct-15 5:24 
GeneralRe: thread safe log class with simple functionality Pin
Richard Deeming22-Oct-15 5:35
mveRichard Deeming22-Oct-15 5:35 

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.