Tag Archives: c#

A short way to invoke methods in C#

The code example shows how to invoke methods with one-line call. It does not require writing explicit delegates, works in .NET 2.0 and later by accessing outer variables (text in the example) from an anonymous method. Invoke() method can be used instead of BeginInvoke(). C# code:

How to show node tooltip with TreeViewAdv

The following code snippet shows how to show and update tooltip on TreeViewAdv nodes. A tooltip is shown for the node under the mouse pointer. If the mouse is moved to another node, the tooltip is closed and opened with updated text. C# code: