Notice
Recent Posts
Recent Comments
목록Delegate (1)
분노의 챔질
반응형
C# delegate
private delegate void UpdateText(Control ctrl, string text);public void AsyncDisplayText(Control ctrl, string text){ if (ctrl.InvokeRequired) { ctrl.Invoke(new UpdateText(AsyncDisplayText), new object[] { ctrl, text }); } else { if (ctrl.AccessibilityObject.Role == AccessibleRole.List) { ListBox li = ctrl as ListBox; li.Items.Insert(0, Da..
Programming/C#
2024. 5. 28. 09:39
반응형