Click here to Skip to main content
15,900,461 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to use tabcontrol with richtextbox. Pin
musefan27-May-09 2:14
musefan27-May-09 2:14 
GeneralRe: How to use tabcontrol with richtextbox. Pin
Aljaz11127-May-09 6:51
Aljaz11127-May-09 6:51 
GeneralRe: How to use tabcontrol with richtextbox. Pin
EliottA27-May-09 7:01
EliottA27-May-09 7:01 
GeneralRe: How to use tabcontrol with richtextbox. Pin
Aljaz11127-May-09 7:10
Aljaz11127-May-09 7:10 
GeneralRe: How to use tabcontrol with richtextbox. Pin
EliottA27-May-09 7:17
EliottA27-May-09 7:17 
GeneralRe: How to use tabcontrol with richtextbox. Pin
musefan27-May-09 7:13
musefan27-May-09 7:13 
GeneralRe: How to use tabcontrol with richtextbox. [modified] Pin
Aljaz11127-May-09 8:14
Aljaz11127-May-09 8:14 
GeneralRe: How to use tabcontrol with richtextbox. Pin
musefan27-May-09 8:16
musefan27-May-09 8:16 
well the code you have there for setting the font is in a loop so it will do it for every run of that loop i.e. for every tab page.

if you want to do things for just the selected tab page then instead of looping all the tab pages in the tab control. you can simple use the tab controls 'SelectedTabPage' property...


RichTextBox richTextBox1 = (RichTextBox)TabControl1.SelectedTabPage.Controls["RichTextBox" + count];
                
FontDialog f = new FontDialog();
if (f.ShowDialog() == DialogResult.OK)
   richTextBox1.Font = f.Font;


Life goes very fast. Tomorrow, today is already yesterday.

GeneralRe: How to use tabcontrol with richtextbox. [modified] Pin
Aljaz11127-May-09 8:34
Aljaz11127-May-09 8:34 
QuestionHelp please Pin
Rajdeep.NET is BACK27-May-09 1:36
Rajdeep.NET is BACK27-May-09 1:36 
AnswerRepost: Ignore please Pin
J4amieC27-May-09 1:37
J4amieC27-May-09 1:37 
GeneralRe: Repost: Ignore please Pin
Rajdeep.NET is BACK27-May-09 1:45
Rajdeep.NET is BACK27-May-09 1:45 
RantRe: Repost: Ignore please Pin
Michael Bookatz27-May-09 1:51
Michael Bookatz27-May-09 1:51 
GeneralA request to the regulars [modified] Pin
Rajesh R Subramanian27-May-09 3:27
professionalRajesh R Subramanian27-May-09 3:27 
GeneralRe: A request to the regulars Pin
OriginalGriff27-May-09 3:37
mveOriginalGriff27-May-09 3:37 
GeneralRe: A request to the regulars Pin
Rajesh R Subramanian27-May-09 3:40
professionalRajesh R Subramanian27-May-09 3:40 
GeneralRe: A request to the regulars Pin
Rajdeep.NET is BACK27-May-09 7:32
Rajdeep.NET is BACK27-May-09 7:32 
RantRe: Help please Pin
fly90427-May-09 1:41
fly90427-May-09 1:41 
AnswerRe: Help please Pin
Michael Bookatz27-May-09 1:50
Michael Bookatz27-May-09 1:50 
GeneralRe: Help please Pin
Rajdeep.NET is BACK27-May-09 1:59
Rajdeep.NET is BACK27-May-09 1:59 
GeneralRe: Help please Pin
0x3c027-May-09 2:34
0x3c027-May-09 2:34 
GeneralRe: Help please Pin
scottgp27-May-09 4:23
professionalscottgp27-May-09 4:23 
AnswerRe: Help please Pin
OriginalGriff27-May-09 1:58
mveOriginalGriff27-May-09 1:58 
GeneralRe: Help please Pin
Rajdeep.NET is BACK27-May-09 2:01
Rajdeep.NET is BACK27-May-09 2:01 
GeneralRe: Help please Pin
fly90427-May-09 2:05
fly90427-May-09 2:05 

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.