I got the following error message after building/running a sample TreeView C# example:
The problem is no doubt caused by the way I cobbled together the example from the three .cs files (listed below) obtained from
Because I didn't know how to create an assembly to go along witht the sample .cs files, I started by creating a new WindowsApplication project "TreeViewDemo".
I then built three new text files in the TreeViewDemo folder,
DirectoryNode.cs
PlatformInvokeKernel32.cs
TreeViewCtl.cs
and copied/pasted the code from the Web into them.
Finally, using Solution Explorer, I deleted the generated Form1.cs and then added the three .cs files just mentioned.
The project compiled cleanly, but hung with the error diagnostic indicated above. Any suggestions on how to resolve this would be greatly appreciated.
Code:
mscorlib.dll
Additional information: Could not find any resources appropriate for the specified culture (or the neutral culture) in the given assembly. Make sure "TreeViewCtl.resources" was correctly embedded or linked into assembly "TreeViewDemo".
baseName: TreeViewCtl locationInfo: TreeViewCtl resource file name: TreeViewCtl.resources assembly: TreeViewDemo, Version=1.0.1186.28592, Culture=neutral, PublicKeyToken=null
Offending line #422:
imageList2.ImageStream = (System.Windows.Forms.ImageListStreamer)resources.GetObject("imageList2.ImageStream");
The problem is no doubt caused by the way I cobbled together the example from the three .cs files (listed below) obtained from
Because I didn't know how to create an assembly to go along witht the sample .cs files, I started by creating a new WindowsApplication project "TreeViewDemo".
I then built three new text files in the TreeViewDemo folder,
DirectoryNode.cs
PlatformInvokeKernel32.cs
TreeViewCtl.cs
and copied/pasted the code from the Web into them.
Finally, using Solution Explorer, I deleted the generated Form1.cs and then added the three .cs files just mentioned.
The project compiled cleanly, but hung with the error diagnostic indicated above. Any suggestions on how to resolve this would be greatly appreciated.