tag:blogger.com,1999:blog-18643420.post8467115477889584824..comments2023-10-03T12:36:03.600+01:00Comments on Tech Dreams: C#.NET : Display TreeView Nodes in Different ColorsGopinath Mhttp://www.blogger.com/profile/07663572817011969156noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-18643420.post-7500729621929139672008-11-19T01:01:00.000+00:002008-11-19T01:01:00.000+00:00The availability of events does not depend on the ...The availability of events does not depend on the version of VS, but solely on the .NET Framework, of which you might have an old version. It might also be possible, however, that VS is simply not showing the event in the designer (this is the case with MouseWheel for Control in VS 2008, for instance). In that case, just open [Form name].Designer.cs and manually add:<BR/><BR/>this.treeView1.DrawNode += new System.Windows.Forms.DrawTreeNodeEventHandler(treeView1_DrawNode);<BR/>somewhere after<BR/>this.treeView1 = new System.Windows.Forms.TreeView();<BR/>to the method InitializeComponents().Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-18643420.post-68049821637744092212008-02-25T10:01:00.000+00:002008-02-25T10:01:00.000+00:00Nice coding.. how can i do it Visual C# 2003. beca...Nice coding.. how can i do it Visual C# 2003. because DrawNode event is not available in Visual C# 2003selvinhttps://www.blogger.com/profile/09980031634482705585noreply@blogger.com