When to use delegates c #

  1. Another method calls a method, repeated simplified statement
  2. Cross-thread changes "control" property (Note: Controls are not equal to the component)
    attached:
    C: \ the Users \ Administrator \ Documents \ Visual Studio 2015 \ the Projects \ WindowsForms_learn in c # program
    Reference:
    c # delegate (Delegates) - Basic concepts and use
    why sometimes toolStripStatusLabel cross-thread change the Text property of the control can not delegate?
    basic method of cross-thread access visual control of
    the difference between c # components and controls
Published 30 original articles · won praise 3 · Views 905

Guess you like

Origin blog.csdn.net/qq_42697866/article/details/102967937