Пример #1
0
        private void btn_FilterTitle_Click(object sender, EventArgs e)
        {
            AccessWin aw = new AccessWin();

            AccessWin.WindowsTree wt = new AccessWin.WindowsTree();
            IntPtr pt = aw.GetWindowHandlebyTitle(txt_APPTitle.Text);

            txt_handle.Text = pt.ToString("X");  //display the handle in textbox
            //IntPtr vHandle = new IntPtr(Convert.ToInt32(txt_ListHandle.Text, 16));
            wt = aw.ListWindow(pt);
            try
            {
                DataTable dt2 = wt.FiltedbyTitle(txt_FilterTitle.Text).toDatatable();
                if (dt2 != null)
                {
                    dgv_list.DataSource = dt2;
                }
            }
            catch
            { }
        }