Overclock.net banner

1 - 4 of 4 Posts

·
Registered
Joined
·
1,602 Posts
Discussion Starter #1
I've got a C# application that loads a file and does some processing to it. Its current interface contain of a window with two richtextboxes splitted horizontally in the middle. The top rtb displays the contents of the loaded file and the bottom one displays processing results.

Now, what I'd like to have is an interface only shows the results and kind of expands if the user wishes to see the contents of input file as well. So initialy there is only one rtb and if the user clicks "show input" the other rtb appear over the results one. Is there an easy way to do this?
 

·
Premium Member
Joined
·
4,159 Posts
You can do this easily.
First though, are you producing color output? If not, use a regular TextBox.

Add the other textbox you want to your form, make it's Visible Property false.
Under the "Show Input" button's click event do this (pseudo code):

Determine which input you want to show (which is selected in the list).
Load the info you want in to the textbox's Text property,
then change the textbox's Visible property to true.

Is that the kind of thing you are talking about?
 

·
Premium Member
Joined
·
4,159 Posts
Quote:

Originally Posted by poroboszcz View Post
Ok, I just solved it. I've put rtb's in the SplitContainer and used SplitContainer.Panel1Collapsed property and set it to true. Works exactly as I wanted. Thanks for help anyway.
Perfect!
 
1 - 4 of 4 Posts
Top