Click here to Skip to main content
15,890,185 members
Home / Discussions / C#
   

C#

 
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 
This is how I have the method within the frmMain()
public partial class frmMain : Form
{
    public TreeNode parentNode;
    public TreeView treeView1;
    public string folderLocation = Video_Watcer.Properties.Settings.Default.Folder_Location.ToString();
    public int progress;
    public frmMain()
    {
        InitializeComponent();
    }
    private void frmMain_Load(object sender, EventArgs e)
    {
        //MessageBox.Show(Video_Watcer.Properties.Settings.Default["Folder_Location"].ToString());
        //MessageBox.Show(Properties.Settings.Default.Folder_Location.ToString());

        PopulateTreeView();
    }
    public void PopulateTreeView()
    {
        DirectoryInfo di = new DirectoryInfo(folderLocation);
        //MessageBox.Show(di.GetFiles().GetUpperBound(0).ToString());
        treeView1.ImageList = imageList1;
        parentNode = treeView1.Nodes.Add(di.Name.ToString());
        StatusBarLabelFolderPath.Text = di.FullName.ToString();
        SetParentNodeImage();
        string CurrentFileName;
        for (int i = 0; i <= di.GetFiles().GetUpperBound(0); i++)
        {
            FileInfo[] fi = di.GetFiles();
            txtWatcherStatus.Text = txtWatcherStatus.Text + Environment.NewLine + fi[i].ToString();
            CurrentFileName = fi[i].ToString();
            SetFileNodes(CurrentFileName);
        }
    }
}


But I am not able to see any thing in frmOptions when I type frmMain. PopulateTreeView does not pop-up in the intellisense. what am I doing wrong here Frown | :(

This is the code for my frmOptions form:
private void btnApply_Click(object sender, EventArgs e)
{
    try
    {
        Properties.Settings.Default.Folder_Location = txtFolderPath.Text.ToString();
        Properties.Settings.Default.Save();
        /* This is when I need to refresh the content for frmMain Form*/
    }
    catch (Exception ex)
    {
        MessageBox.Show(ex.Message);
    }
}

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 
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 
QuestionDesign Question Pin
student_rhr1-May-06 6:00
student_rhr1-May-06 6:00 
AnswerRe: Design Question Pin
Dave Kreskowiak1-May-06 6:42
mveDave Kreskowiak1-May-06 6:42 
QuestionSystem Modal Form in .NET Pin
Lav Pathak1-May-06 5:37
Lav Pathak1-May-06 5:37 
AnswerRe: System Modal Form in .NET Pin
Josh Smith1-May-06 6:09
Josh Smith1-May-06 6:09 
GeneralRe: System Modal Form in .NET Pin
Lav Pathak1-May-06 6:22
Lav Pathak1-May-06 6:22 
GeneralRe: System Modal Form in .NET Pin
Josh Smith1-May-06 7:11
Josh Smith1-May-06 7:11 
AnswerRe: System Modal Form in .NET Pin
Ravi Bhavnani1-May-06 7:23
professionalRavi Bhavnani1-May-06 7:23 
GeneralRe: System Modal Form in .NET Pin
Dan Neely1-May-06 7:48
Dan Neely1-May-06 7:48 

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.