Click here to Skip to main content
15,909,953 members
Home / Discussions / C#
   

C#

 
GeneralRe: Ngen on setup, VB to C# translation Pin
Bekjong4-Jan-08 2:03
Bekjong4-Jan-08 2:03 
GeneralRe: Ngen on setup, VB to C# translation Pin
Giorgi Dalakishvili4-Jan-08 2:14
mentorGiorgi Dalakishvili4-Jan-08 2:14 
AnswerRe: Ngen on setup, VB to C# translation Pin
Bekjong4-Jan-08 2:20
Bekjong4-Jan-08 2:20 
GeneralRe: Ngen on setup, VB to C# translation Pin
Giorgi Dalakishvili4-Jan-08 2:21
mentorGiorgi Dalakishvili4-Jan-08 2:21 
Generalwriting dataset to xml Pin
cellardoor07163-Jan-08 22:54
cellardoor07163-Jan-08 22:54 
QuestionLoading Text into a RichTextBox (With a catch) Pin
Programm3r3-Jan-08 22:52
Programm3r3-Jan-08 22:52 
GeneralRe: Loading Text into a RichTextBox (With a catch) Pin
Giorgi Dalakishvili3-Jan-08 23:05
mentorGiorgi Dalakishvili3-Jan-08 23:05 
GeneralRe: Loading Text into a RichTextBox (With a catch) Pin
Programm3r3-Jan-08 23:35
Programm3r3-Jan-08 23:35 
Hi,

Thanks for the reply. Something like this then:
RichTextBox text = (RichTextBox)tabControlMain.TabPages[tabControlMain.TabPages.Count - 1].Controls[0];


Before your response I came up with this (it works aswell, but don't know if I'm going about it correclty Confused | :confused: )
public RichTextBox[] rtext = new RichTextBox[100];
...
// when adding a new tab and richtext box
rtext[tabControlMain.TabPages.Count - 1] = new RichTextBox();
tabControlMain.TabPages[tabControlMain.TabPages.Count - 1].Controls.Add(rtext[tabControlMain.TabPages.Count-1]);
...                   
// load the file from drive
rtext[tabControlMain.SelectedIndex].LoadFile(dlg.FileName, RichTextBoxStreamType.PlainText);


Anyway that is my version but I'm new to CSharp so I don't know if this is the correct way to go about it Blush | :O

Thanks again
Regards,



The only programmers that are better that C programmers are those who code in 1's and 0's Green Alien | [Alien]


Smile | :) Programm3r

My Blog: ^_^

GeneralRe: Loading Text into a RichTextBox (With a catch) Pin
Giorgi Dalakishvili3-Jan-08 23:47
mentorGiorgi Dalakishvili3-Jan-08 23:47 
GeneralRe: Loading Text into a RichTextBox (With a catch) Pin
Programm3r4-Jan-08 0:02
Programm3r4-Jan-08 0:02 
GeneralRe: Loading Text into a RichTextBox (With a catch) Pin
Giorgi Dalakishvili4-Jan-08 0:20
mentorGiorgi Dalakishvili4-Jan-08 0:20 
GeneralThanks for the help Pin
Programm3r4-Jan-08 0:58
Programm3r4-Jan-08 0:58 
GeneralRe: Thanks for the help Pin
Giorgi Dalakishvili4-Jan-08 1:05
mentorGiorgi Dalakishvili4-Jan-08 1:05 
QuestionHow to show the datatable values in combobox? Pin
kssknov3-Jan-08 22:50
kssknov3-Jan-08 22:50 
GeneralRe: How to show the datatable values in combobox? Pin
Justin Perez4-Jan-08 3:39
Justin Perez4-Jan-08 3:39 
QuestionIn C# is there any way to know the number of non null elements in an array? Pin
nicolus3-Jan-08 22:45
nicolus3-Jan-08 22:45 
AnswerRe: In C# is there any way to know the number of non null elements in an array? Pin
martin_hughes3-Jan-08 23:06
martin_hughes3-Jan-08 23:06 
QuestionWord To PDF Conversion using C#.NET Pin
Vruddhi Vasoo3-Jan-08 22:20
Vruddhi Vasoo3-Jan-08 22:20 
GeneralRe: Word To PDF Conversion using C#.NET Pin
Christian Graus3-Jan-08 23:37
protectorChristian Graus3-Jan-08 23:37 
GeneralRe: Word To PDF Conversion using C#.NET Pin
Vasudevan Deepak Kumar4-Jan-08 0:07
Vasudevan Deepak Kumar4-Jan-08 0:07 
GeneralRe: Word To PDF Conversion using C#.NET Pin
Pete O'Hanlon4-Jan-08 9:54
mvePete O'Hanlon4-Jan-08 9:54 
GeneralRe: Word To PDF Conversion using C#.NET Pin
Justin Perez4-Jan-08 3:42
Justin Perez4-Jan-08 3:42 
GeneralRe: Word To PDF Conversion using C#.NET Pin
ChrisKo4-Jan-08 5:51
ChrisKo4-Jan-08 5:51 
AnswerRe: Word To PDF Conversion using C#.NET [modified] Pin
murari_amar3-Sep-08 2:41
murari_amar3-Sep-08 2:41 
Generalsetting session as string Pin
eyeseetee3-Jan-08 22:18
eyeseetee3-Jan-08 22:18 

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.