Link to home
Start Free TrialLog in
Avatar of Matrix1000
Matrix1000

asked on

MDI form question, how to Open a new tab when file is opened?

This is kind of a pain to ask as well as to answer but here goes anyway....

I've got a Parent MDI form, and another form that is the ChildTemplate form template.
On the ChildTemplate form I've placed a tab control.  on tab1 I've placed a panel, docked left with a bunch of stuff in it as well as a splitter and rich textbox docked to Fill.

I've got the link going from the open file toolbar button on the Parent form to open the textfile in the RichTextbox on the Child forms and everything works great.

Now the messed up part......
How can I use the open file toolbar button on the parent form to open a new tab in the tab control on the ChildTemplate form ...."and open the file into a richtextbox in the new tab."

This is a two part question I guess...
1. How would I copy the contents/controls/buttons/etc of the first tab to appear on the second tab when it is opened.
2. How would I open the text file to that tab on that child form?

If you can answer this its with working code examples its worth 1500 points or more. I'll probably need help getting it working so I'll ask lots of questions in new posts and link you to them as I ask.
Avatar of Fernando Soto
Fernando Soto
Flag of United States of America image

Hi Matrix1000;

If this is a small project which you have and you are able to post it so that we can see how things are connected it would be easier to show you what you need to do. If you can zip the project up and then go to this EE web site at http://www.ee-stuff.com/login.php and login their with the same username and password as the main site here. Once you have logged in click on the tab Expert Area, then click on the link Upload a new file, then follow the instructions to upload the file. Once the file has been uploaded they will give you a link that you will post here.

Fernando
Avatar of Matrix1000
Matrix1000

ASKER

Thanks for the tip! Here is an example project of what I'm trying to do.

https://filedb.experts-exchange.com/incoming/ee-stuff/6946-MDI-Forms-Example.zip 
ASKER CERTIFIED SOLUTION
Avatar of Fernando Soto
Fernando Soto
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks Fernando!!!!!!!!!!!!!
Not a problem, glad to be of help. ;=)