Answer the question
In order to leave comments, you need to log in
In what cases does calling a method through a delegate not update the interface?
I am writing some software in VB .NET 2012 WinForms.
The main form has a LoadTree method, which, as the name implies, loads the tree (no matter where or how). To simplify, I'll cut the code:
Public Delegate Sub LoadTreeDelegate()
Sub LoadTree()
tvMain.Nodes.Clear()
End Sub
Dim d As New frmMain.LoadTreeDelegate(AddressOf frmMain.LoadTree)
d.Invoke()
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question