how to populate and use treeview nodes in proper way when they are conecting to system location
<p>iam facing one problem when iam click on treeview nodes 
The problem is the first node is not activated next time.
Iam dong image converting to text  in my project.at that time iam populating treeview from  system location and click node by node.</p>

<p>the problem is when iam click on first node it show the image in picture box well.
Then after when iam click next time the same image it is not working and node is not activated</p>

<p>What is the problem in my code
My code is</p>

<pre><code>    string fldr = ConfigurationSettings.AppSettings["IMGFOLDER"];
    formload()
    {
      PopulateTreeview();
     }
    BtnImageShow()
    {
      DisplayImage();

   }
    private void POpulateTreeview()
    {
        DirectoryInfo info = new DirectoryInfo(fldr);
        TreeNode root = new TreeNode(info.Name);
        root.Text = "";

        TreeNode node = new TreeNode();
        TrvImageFile.Nodes.Add(root);
        FileInfo[] subfileinfo = info.GetFiles("*.*");
        if (subfileinfo.Length &gt; 0)
        {
            for ( j = 0; j &lt; subfileinfo.Length; j++)
            {
                root.Nodes.Add(subfileinfo[j].Name);
            }
        }

        TrvImageFile.ExpandAll();
    }
    DisplayImage()
    {
          fldr = string.Concat(fldr, "\\");
        fpath = string.Concat(fldr, TrvImageFile.SelectedNode.Text);
        try
        {
            rasterImageViewer1.Image = rc.Load(fpath);
        }
        catch (Exception ex)
        {
            MessageBox.Show("nothing  to select there ");
            MessageBox.Show(ex.Message);
        }
}
</code></pre>
