theLizard
posted
598 posts
since
Oct 18, 2009
from
|
|
Re: Load multiple text file in simple Notepad
|
|
|
|
|
|
|
|
|
|
|
I have posted an example of doing this before so here it is again.
It does not use tabs but manages forms in an MDI application, using tabs is not that much different, instead of managing forms you manage tabs.
|
|
|
|
|
|
Tanmay Sarkar
posted
194 posts
since
May 28, 2010
from
India
|
|
Re: Load multiple text file in simple Notepad
|
|
|
|
|
|
|
|
|
|
|
Thanks for you support. Actually i want something different. Your app has nice look no doubt. But when it maximized, the look is changed.
Unfortunately i am unable to post image in this thread, so I upload 3 images your 2 (images) & what i am looking for 1 (image) .
Thanks for your valuable time to help me. But i want something different.
Please help me! Thank you in advance!
[Any body can tell me how upload image in thread?]
|
|
|
|
|
|
theLizard
posted
598 posts
since
Oct 18, 2009
from
|
|
Re: Load multiple text file in simple Notepad
|
|
|
|
|
|
|
|
|
|
|
As I said, It
does not use tabs but manages forms in an MDI application, using tabs
is not that much different, instead of managing forms you manage tabs. (the Tab Control does it for you)
If you just want a form with a tab control just use the TabControl.TabPages.Add("the name of the file you just opened") then if you want to save a file use the tab page text property.
Using a tab control will be a lot easier than managing forms in my example, you just need to work out how to do it but the example gives you an idea..
|
|
|
|
|
|
Sam Hobbs
posted
6490 posts
since
Sep 07, 2009
from
Los Angeles, California, USA
|
|
Re: Load multiple text file in simple Notepad
|
|
|
|
|
|
|
|
|
|
I am not familiar with the classes that .Net provides for this but usinig C++ and .Net, it is possible to create a simple multiple-document editor in a few minutes (as in Simple CEditView Application). I am not however suggesting that you use C++ for this. As theLizard indicates, this is a perfectly valid use of MDI; you are using multiple windows and each window is for a separate, independent document. It is what MDI was designed for.
There is a sample C++ program called Superpad that is like a multiple-document version of Notepad. I am not suggesting you use C++ but I am surprised that there is not a C# version of it.
|
|
|
|
|
Thinking is a feeling; pleasant for some and unpleasant for others.
|
|
|
|
|
|
Tanmay Sarkar
posted
194 posts
since
May 28, 2010
from
India
|
|
Re: Load multiple text file in simple Notepad
|
|
|
|
|
|
|
|
|
|
As "theLizard " suggest i am using tab.and it works, But i say in my first post that "if we use Tab control then i think, the close button will not appear in tab."
And it's true, tab control have no that option. Where it appreciate that every tab must contain a close button. And it give a better look.
MDI is good but when more child are maximized, the looks are not better (i think). That's why i upload 3 images in my previous post.
Thank you!
|
|
|
|
|
|
Tanmay Sarkar
posted
194 posts
since
May 28, 2010
from
India
|
|
Re: Load multiple text file in simple Notepad
|
|
|
|
|
|
|
|
|
|
|
Thank you sir, for your good link.There is a nice note.
|
|
|
|
|
|
theLizard
posted
598 posts
since
Oct 18, 2009
from
|
|
Re: Load multiple text file in simple Notepad
|
|
|
|
|
|
|
|
|
|
|
You do NOT need a close button on each tab, all you need to do is check which is the current tab and act on it with a single close button. It is not that difficult.
I have also created a Tab based system using C++ see example.
In this example (just a screen shot) the act of clicking on a tab or in a rich edit box sets the one an only open / close menu option to act on the tab or rich edit selected.
If you open a file, then the file is opened in the rich edit box of the tab selected and the status bar shows the file path and name. Ctrl + S will save the active tab document.
Doing these things is not difficult, you just need to develop the ideas.
|
|
|
|
|
|
theLizard
posted
598 posts
since
Oct 18, 2009
from
|
|
Re: Load multiple text file in simple Notepad
|
|
|
|
|
|
|
|
|
|
|
You do NOT need a close button on each tab, all you need to do is check which is the current tab and act on it with a single close button. It is not that difficult.
I have also created a Tab based system using C++ see example.
In this example (just a screen shot) the act of clicking on a tab or in a rich edit box sets the one an only open / close menu option to act on the tab or rich edit selected.
If you open a file, then the file is opened in the rich edit box of the tab selected and the status bar shows the file path and name. Ctrl + S will save the active tab document.
Doing these things is not difficult, you just need to develop the ideas.
|
|
|
|
|
|
Tanmay Sarkar
posted
194 posts
since
May 28, 2010
from
India
|
|
Re: Load multiple text file in simple Notepad
|
|
|
|
|
|
|
|
|
|
|
I develop your idea, it's good & with your friendly help I build it. My problem is solved but if it possible to add close button then it will be more nice job.
Thanks for your long support. Thank you! :)
|
|
|
|
|
|