Results 1 to 2 of 2

Thread: High Speed Text / Report window

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2000
    Location
    Gloucestershire, England
    Posts
    301

    Question

    I`m using a textbox to display traffic from a high speed serial bus. I have two different modes fixed and sequential. In fixed mode packets of the same ID are displayed on the same line, in sequential mode the new packet is added to the bottom of the list. The window always displays the last "n" packets (depending on the height of the window)

    A Textbox is the fastest method I have found, the only downside is I have to re-draw the whole string every time I update the window (slow). Originally I used a listview, this was good because I could access individual lines in the table (instead of re-drawing the whole table as I do with a text box) but it was very very slow.

    Is there a faster way of implementing this? At the moment if the bus gets busy the textbox can`nt keep up with the amount of data (mainly due to the slow re-draw) I have noticed changing the font has an effect, but is there another method altogether?

    Cheers

    I forget to add that I currently update the textbox with a timer (rather then every time a packet arrives). The packet data stored in array and the search / manipulation is done on this.

    [Edited by Rick H on 06-22-2000 at 06:16 AM]

  2. #2
    Fanatic Member
    Join Date
    Mar 2000
    Location
    That posh bit of England known as Buckinghamshire
    Posts
    658

    Lightbulb An Idea

    Position the cursor in the text box using the SelStart property. Make sure the text box has the focus. Then use SendKeys to send the string of data to the text box.

    This will save you having to reprint all of the text.
    Iain, thats with an i by the way!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width