Scroll Bars Are Scrolling Me Crazy
Okay, excuse the horrible pun on my part, but it's truly driving me insane.
I'm self-learning C#. It's been fairly easy for me up to this point, and usually if I run into a problem the online help usually has the answer. But after spending two hours reading various things in there I don't know if I'm just overlooking it, or not understanding it. Point being, I can't figure out what I'm trying to do.
Basically here's the situation:
I have a multi-line text box that does not have scroll bars on by default. As the program is going along, it occasionally adds information into that text box. I have a check that runs to keep track of how many lines are currently in that box. Once the lines hit a certain #, I tell it to automatically add vertical scroll bars to the text box. So far, so good.
this.txtInformationText.ScrollBars = ScrollBars.Vertical;
The problem is, it'll continue to add the text into the box and the scroll bars aren't budging on their own. This may sound normal, and probably is, but I REALLY want it to scroll down with the information so the user doesn't have to scroll down with it. You might say "well, why not just keep only the most relevant info in the text box and eliminate the scroll bars all together" But I want the scroll bars there so that when the program has done its thing, the user can scroll up to see all that it's done, not just the most current information it has added.
Anyway, I'm going crazy trying to figure out how to force it to scroll down. Does anyone out there have any ideas on how to do this? I will be forever thankful.