Click here to Skip to main content
15,899,825 members
Home / Discussions / C#
   

C#

 
GeneralRe: PassportIdentity.Compress - ?? Pin
BlackDice2-May-06 5:28
BlackDice2-May-06 5:28 
QuestionEnumerator question Pin
jbricker771-May-06 9:28
jbricker771-May-06 9:28 
AnswerRe: Enumerator question Pin
Josh Smith1-May-06 9:32
Josh Smith1-May-06 9:32 
GeneralRe: Enumerator question Pin
jbricker772-May-06 2:48
jbricker772-May-06 2:48 
AnswerRe: Enumerator question Pin
Robin Panther1-May-06 12:57
Robin Panther1-May-06 12:57 
GeneralRe: Enumerator question Pin
jbricker772-May-06 3:22
jbricker772-May-06 3:22 
AnswerRe: Enumerator question Pin
jbricker772-May-06 3:37
jbricker772-May-06 3:37 
AnswerRe: Enumerator question Pin
jbricker772-May-06 8:46
jbricker772-May-06 8:46 
QuestionPainting an ActiveX Control to an Image Pin
kingphotis1-May-06 8:41
kingphotis1-May-06 8:41 
AnswerRe: Painting an ActiveX Control to an Image Pin
Judah Gabriel Himango1-May-06 9:34
sponsorJudah Gabriel Himango1-May-06 9:34 
GeneralRe: Painting an ActiveX Control to an Image Pin
kingphotis1-May-06 9:42
kingphotis1-May-06 9:42 
QuestionHow to refresh Win Form [C# 2.0 ] Pin
student_rhr1-May-06 8:04
student_rhr1-May-06 8:04 
AnswerRe: How to refresh Win Form [C# 2.0 ] Pin
Josh Smith1-May-06 8:17
Josh Smith1-May-06 8:17 
GeneralRe: How to refresh Win Form [C# 2.0 ] Pin
student_rhr1-May-06 8:31
student_rhr1-May-06 8:31 
GeneralRe: How to refresh Win Form [C# 2.0 ] Pin
Josh Smith1-May-06 8:53
Josh Smith1-May-06 8:53 
GeneralRe: How to refresh Win Form [C# 2.0 ] Pin
student_rhr1-May-06 9:18
student_rhr1-May-06 9:18 
GeneralRe: How to refresh Win Form [C# 2.0 ] Pin
Josh Smith1-May-06 9:23
Josh Smith1-May-06 9:23 
GeneralRe: How to refresh Win Form [C# 2.0 ] Pin
student_rhr1-May-06 9:46
student_rhr1-May-06 9:46 
GeneralRe: How to refresh Win Form [C# 2.0 ] Pin
student_rhr1-May-06 9:56
student_rhr1-May-06 9:56 
You may ignore my last postBlush | :O
I changed the code to following:
public static void PopulateTreeView(frmMain d)
{
    DirectoryInfo di = new DirectoryInfo(d.folderLocation);
    //MessageBox.Show(di.GetFiles().GetUpperBound(0).ToString());
    d.treeView1.ImageList = d.imageList1;
    d.parentNode = d.treeView1.Nodes.Add(di.Name.ToString());
    d.StatusBarLabelFolderPath.Text = di.FullName.ToString();
    d.SetParentNodeImage();
    string CurrentFileName;
    for (int i = 0; i <= di.GetFiles().GetUpperBound(0); i++)
    {
        FileInfo[] fi = di.GetFiles();
        d.txtWatcherStatus.Text = d.txtWatcherStatus.Text + Environment.NewLine + fi[i].ToString();
        CurrentFileName = fi[i].ToString();
        d.SetFileNodes(CurrentFileName);
    }
}

And frmMain_Load call to following:
private void frmMain_Load(object sender, EventArgs e)
{
    PopulateTreeView(this);
}

But the contents have not been updated, I must be doing something wrong here.
GeneralRe: How to refresh Win Form [C# 2.0 ] Pin
Josh Smith1-May-06 10:26
Josh Smith1-May-06 10:26 
GeneralRe: How to refresh Win Form [C# 2.0 ] Pin
student_rhr1-May-06 11:33
student_rhr1-May-06 11:33 
GeneralRe: How to refresh Win Form [C# 2.0 ] Pin
Judah Gabriel Himango1-May-06 13:08
sponsorJudah Gabriel Himango1-May-06 13:08 
GeneralRe: How to refresh Win Form [C# 2.0 ] Pin
Josh Smith1-May-06 13:11
Josh Smith1-May-06 13:11 
QuestionDrawing the focus rectangle for a button Pin
melanieab1-May-06 6:18
melanieab1-May-06 6:18 
AnswerRe: Drawing the focus rectangle for a button Pin
Josh Smith1-May-06 7:23
Josh Smith1-May-06 7:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.