How can I add information values(or strings)of handle from Messagebox to List box in C#?
<p>my program follows;</p>

<pre><code>using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Runtime.InteropServices;
using System.IO;

namespace WindowsFormsApplication9
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            abc();

        }

        [DllImport("user32.dll", SetLastError = true)]static extern IntPtr
        FindWindow(string lpClassName, string lpWindowName); 

        [DllImport("user32.dll")]public static extern int
        EnumChildWindows(IntPtr hwnd, EnumChildCallback Proc, int lParam);

        [DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)]
        static extern int GetWindowText(IntPtr hWnd, StringBuilder lpString, int nMaxCount);

        public delegate bool EnumChildCallback(IntPtr hwnd, ref IntPtr lParam);

        public static void abc ()
        {
            IntPtr pHndl = FindWindow("notepad", null);

            EnumChildWindows(pHndl, EnumChildProc, 0);
        }

        public static bool EnumChildProc(IntPtr hwndChild, ref IntPtr lParam)
        {
            try
            {

                const int nChar = 256;

                StringBuilder ss = new StringBuilder(nChar);

                string veri = "Handle: " + hwndChild.ToString() + "::" + GetWindowText(FindWindow("notepad", null), ss, 256);
                MessageBox.Show(veri);
            }
            catch (Exception ex)
            {
                MessageBox.Show("Hata Olustu: " + ex.Message);
            }

            return true;
        }

        private void listBox1_SelectedIndexChanged(object sender, EventArgs e)
        {

        }
    }
}
</code></pre>
