visual studio 2010 - How to perceive in code if developer pressed F5 or Ctrl-F5 -


how can perceive in code (c#) if developer pressed f5 or ctrl-f5 prior execute solution in vs2010?

if (f5pressed) {do something} else {do other thing}

static void main(string[] args) {      if (system.diagnostics.debugger.isattached)        console.writeline("f5");      else        console.writeline("ctrl f5");     string s = console.readline();  } 

this works in general case, not asked for. other debuggers attached, if run exe double clicking report crtl f5 pressed.


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -