Could anybody help me on how to add slides as control array to a form in C#? If that is not possible, I would add it manually, but how do I assign file names to each slide?
Here is the code.
private void TV_AfterSelect(object sender, TreeViewEventArgs e)
{
TreeNode newSelected = e.Node;
DirectoryInfo nodeDirInfo = (DirectoryInfo)newSelected.Tag;
sldNum = nodeDirInfo.GetFiles("*.sld").Count();
foreach (FileInfo file in nodeDirInfo.GetFiles())
{
if (file.Extension==".sld")
{
axSlide1.FileName = file.FullName;
.
.
.
.
}
}
}