Scott Miller

Appsguild - Software craftsmanship, project management, and the biz of software

  Home  |   Contact  |   Syndication    |   Login
  153 Posts | 3 Stories | 177 Comments | 72 Trackbacks

News



Article Categories

Archives

Image Galleries

Best Blogs

Podcasts

Scott's links

Help! I am using a multiline textbox (Windows Forms) in my game. I am constantly adding game status messages to it, but I can't keep it scrolled to the most recent entry. How do I do this?
posted on Saturday, June 17, 2006 11:55 AM

Feedback

# re: Multi-line textbox 6/17/2006 2:28 PM Jason Whitehorn
I have done this with listboxes in vb.net.... what I had to do was have a single method that I called every time I added something to the list. Then I could do... lst_Commands.SetSelected(lst_Commands.Items.Count - 1, True)

I do not know if there is a similar command for textboxes... but at least it is a start in the right direction. If I am not mistaken, though, the reason I used the listbox in the first place was because the multiline textboxes lacked that feature.

# re: Multi-line textbox 6/18/2006 6:47 AM D'Arcy from Winnipeg
You could also have it scroll up instead of down...that way you just need to keep adding your new status messages at the beginning of the textbox.text string, so the most recent message appears at the top and not the bottom. If they want to see the older messages, they just scroll to see those.

D

Post Feedback

Title:
Name:
Email: (never displayed)
Url:
Comments: 
Please add 3 and 4 and type the answer here: