Click here to Skip to main content
15,899,126 members
Home / Discussions / C#
   

C#

 
AnswerRe: Log file in C# Pin
King Julien27-Mar-09 23:32
King Julien27-Mar-09 23:32 
GeneralRe: Log file in C# Pin
Colin Angus Mackay28-Mar-09 9:54
Colin Angus Mackay28-Mar-09 9:54 
GeneralRe: Log file in C# Pin
King Julien29-Mar-09 19:43
King Julien29-Mar-09 19:43 
GeneralRe: Log file in C# Pin
Colin Angus Mackay29-Mar-09 21:22
Colin Angus Mackay29-Mar-09 21:22 
QuestionRaw Mouse Input (C#) Pin
Al Mendoza27-Mar-09 15:49
Al Mendoza27-Mar-09 15:49 
AnswerRe: Raw Mouse Input (C#) Pin
Eddy Vluggen28-Mar-09 1:17
professionalEddy Vluggen28-Mar-09 1:17 
QuestionNeed some help with active MDI in a tabcontrol Pin
deaddog420127-Mar-09 15:05
deaddog420127-Mar-09 15:05 
AnswerRe: Need some help with active MDI in a tabcontrol Pin
Henry Minute28-Mar-09 11:07
Henry Minute28-Mar-09 11:07 
I am having a little difficulty in understanding exactly what it is that you are doing, since you seem to be a little bit confused about what 'MDI' is.

However, that has never stopped me before. Smile | :)

Firstly, please forgive me if I seem to be going at a too simplistic level, but you said you are a beginner, so that is why.

The TabControl has a SelectedTab property, which returns a TabPage.
The TabPage control, like most Windows Forms controls, has a Controls property. This is a collection of all controls within the TabPage.

So we can find the active tab of the TabControl (SelectedTab) then all that is needed is to go through all the controls until a RichTextBox is found. (This assumes that there is only one RTB on each tab)

If you Google for 'iterating the controls collection C#', you will get lots of hits, find one that you like and experiment with it.
Hint: You will need to cast the result to RichTextBox e.g.
RichTextBox result = (RichTextBox)foundControl;

Hope this is of some use.

Good luck! Smile | :)

Henry Minute

Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”

GeneralRe: Need some help with active MDI in a tabcontrol Pin
deaddog420129-Mar-09 7:53
deaddog420129-Mar-09 7:53 
GeneralRe: Need some help with active MDI in a tabcontrol Pin
deaddog420129-Mar-09 8:21
deaddog420129-Mar-09 8:21 
GeneralRe: Need some help with active MDI in a tabcontrol Pin
Henry Minute29-Mar-09 12:16
Henry Minute29-Mar-09 12:16 
Questionnotification ballon tip Pin
AlexPizzano27-Mar-09 14:53
AlexPizzano27-Mar-09 14:53 
AnswerRe: notification ballon tip Pin
quacks_a_lot28-Mar-09 10:09
quacks_a_lot28-Mar-09 10:09 
QuestionSubmatrix problem Pin
maxflair27-Mar-09 14:42
maxflair27-Mar-09 14:42 
AnswerRe: Submatrix problem Pin
Luc Pattyn27-Mar-09 20:55
sitebuilderLuc Pattyn27-Mar-09 20:55 
GeneralRe: Submatrix problem Pin
maxflair27-Mar-09 23:16
maxflair27-Mar-09 23:16 
QuestionWPF listbox bug? Pin
Viplex27-Mar-09 14:11
Viplex27-Mar-09 14:11 
Answerpls ignore my question Pin
Viplex27-Mar-09 14:29
Viplex27-Mar-09 14:29 
QuestionCross Page Postback Pin
stormcandi27-Mar-09 11:31
stormcandi27-Mar-09 11:31 
QuestionSearching words in a matrix Pin
nike_arh27-Mar-09 10:42
nike_arh27-Mar-09 10:42 
AnswerRe: Searching words in a matrix Pin
Deresen27-Mar-09 12:02
Deresen27-Mar-09 12:02 
GeneralRe: Searching words in a matrix Pin
nike_arh27-Mar-09 12:32
nike_arh27-Mar-09 12:32 
AnswerRe: Searching words in a matrix Pin
Luc Pattyn27-Mar-09 21:21
sitebuilderLuc Pattyn27-Mar-09 21:21 
GeneralRe: Searching words in a matrix Pin
nike_arh27-Mar-09 23:27
nike_arh27-Mar-09 23:27 
AnswerRe: Searching words in a matrix Pin
nike_arh28-Mar-09 6:56
nike_arh28-Mar-09 6:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.