private void button_CaptureRetangle_Click(object sender, EventArgs e)
        {
            try
            {
                button_Clear_Click(null, null);

                if (obj != null)
                {
                    string result = obj.GetTextFromRect(handle.ToInt32(), x, y, width, height);
                    this.richTextBox_Result.AppendText(result);
                }
                else
                {
                    obj = new TextCaptureX();
                    string result = obj.GetTextFromRect(handle.ToInt32(), x, y, width, height);
                    this.richTextBox_Result.AppendText(result);
                }
            }
            catch (Exception ex)
            {
                //MessageBox.Show("Hold Error:" + ex.Message);
            }
            finally
            {
                obj = null;
            }
        }
 private string GetString()
 {
     if (obj != null)
     {
         string result = obj.GetTextFromRect(handle.ToInt32(), x, y, width, height);
         return(result);
     }
     else
     {
         obj = new TextCaptureX();
         string result = obj.GetTextFromRect(handle.ToInt32(), x, y, width, height);
         return(result);
     }
 }
 public FormAquaScreenHoldString(Form f)
 {
     InitializeComponent();
     m_otherForm = f;
     obj         = new TextCaptureX();
 }