Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 546347
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T10:51:27+00:00 2026-05-13T10:51:27+00:00

I’m trying to create a search tool and would like to display the results

  • 0

I’m trying to create a search tool and would like to display the results in a text box, much like the one contained in Visual Studio – this means that for long searches results will be appended to the end of the text box while the user is attempting to look at the results at the top of the text box.

At the moment I’m using a standard textbox, however it has many problems:

  • The text box flickers madly while the search is in progress
  • Its not possible for the user to scroll while results are being appended to the box
  • Its not possible for the user to copy and paste results in the text box while results are being appended.

Are there any ways of working around these issues, or should I look into using another control / creating my own?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T10:51:27+00:00Added an answer on May 13, 2026 at 10:51 am

    Microsoft forgot to implement the Begin/EndUpdate() methods for TextBox. You can add them yourself, it solves the problem. You can’t get rid of the flicker though. Sample code:

    using System;
    using System.ComponentModel;
    using System.Drawing;
    using System.Windows.Forms;
    using System.Runtime.InteropServices;
    
    namespace WindowsFormsApplication1 {
        public partial class Form1 : Form {
            public Form1() {
                InitializeComponent();
                timer1.Interval = 10;
                timer1.Tick += new EventHandler(timer1_Tick);
                button1.Click += new EventHandler(button1_Click);
            }
            void timer1_Tick(object sender, EventArgs e) {
                int pos = textBox1.SelectionStart;
                int len = textBox1.SelectionLength;
                SendMessage(textBox1.Handle, 11, IntPtr.Zero, IntPtr.Zero);
                textBox1.AppendText(DateTime.Now.ToString() + Environment.NewLine);
                SendMessage(textBox1.Handle, 11, (IntPtr)1, IntPtr.Zero);
                //if (textBox1 is RichTextBox) textBox1.Invalidate();
                textBox1.SelectionStart = pos;
                textBox1.SelectionLength = len;
            }
            private void button1_Click(object sender, EventArgs e) {
                timer1.Enabled = !timer1.Enabled;
            }
            [DllImport("user32.dll")]
            private static extern IntPtr SendMessage(IntPtr hWnd, int msg, IntPtr wp, IntPtr lp);
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like my Web page http://www.gmarks.org/math_in_e-mail.txt on my Apache 2.2.14 server to display
Basically, what I'm trying to create is a page of div tags, each has
I am trying to understand how to use SyndicationItem to display feed which is
I would like to count the length of a string with PHP. The string
For some reason, after submitting a string like this Jack’s Spindle from a text
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I am trying to render a haml file in a javascript response like so:
I would like to run a str_replace or preg_replace which looks for certain words
I'm trying to create an if statement in PHP that prevents a single post
link Im having trouble converting the html entites into html characters, (&# 8217;) i

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.