Guest User

Untitled

a guest
Feb 21st, 2018
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. ((Label)pControl).Background = m_pBrush;
  2. string sControlName = ((Control)pControl).Name;
  3. string sFuntionName = sControlName + "_MouseDoubleClick";
  4.  
  5. MethodInfo pMethod = this.GetType()?.GetMethod(sFuntionName);
  6. pMethod.Invoke(((Label)pControl), null);
Add Comment
Please, Sign In to add comment