Click here to Skip to main content
15,892,005 members
Home / Discussions / C#
   

C#

 
AnswerRe: save a file as .csv formate Pin
User 665823-Dec-08 0:52
User 665823-Dec-08 0:52 
QuestionRegular expression to recognise c++ functions in a .cpp file [modified] Pin
benjymous22-Dec-08 23:57
benjymous22-Dec-08 23:57 
AnswerRe: Regular expression to recognise c++ functions in a .cpp file [modified] Pin
Colin Angus Mackay23-Dec-08 0:25
Colin Angus Mackay23-Dec-08 0:25 
GeneralRe: Regular expression to recognise c++ functions in a .cpp file Pin
benjymous23-Dec-08 0:31
benjymous23-Dec-08 0:31 
GeneralRe: Regular expression to recognise c++ functions in a .cpp file Pin
Colin Angus Mackay23-Dec-08 0:33
Colin Angus Mackay23-Dec-08 0:33 
AnswerRe: Regular expression to recognise c++ functions in a .cpp file Pin
User 665823-Dec-08 0:59
User 665823-Dec-08 0:59 
QuestionProblem in usercontrol Pin
SreejithKumar M22-Dec-08 23:44
SreejithKumar M22-Dec-08 23:44 
AnswerRe: Problem in usercontrol Pin
DaveyM6923-Dec-08 0:58
professionalDaveyM6923-Dec-08 0:58 
What are you adding your user controls to and how?

Normally, you'd use a TabControl. That has a TabPages property of type TabPageCollection. To retrieve data from a particular page you use that page's index. To get all of them you'd use a foreach or a for loop like yours and an index of i for to get the individual page.
// Get the Text property of every tab page using foreach
StringBuilder allTextBuilder = new StringBuilder();
foreach (TabPage item in tabControl1.TabPages)
{
    allTextBuilder.AppendLine(item.Text);
}
string allText = allTextBuilder.ToString();
// Get the Text property of every tab page using a for loop
StringBuilder allTextBuilder2 = new StringBuilder();
for (int i = 0; i < tabControl1.TabPages.Count; i++)
{
    allTextBuilder2.AppendLine(tabControl1.TabPages[i].Text);
}
string allText2 = allTextBuilder2.ToString();
// Get the Text property an individual tab page by its index
string tabPageText = tabControl1.TabPages[0].Text;


Dave
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)

GeneralRe: Problem in usercontrol Pin
SreejithKumar M23-Dec-08 19:21
SreejithKumar M23-Dec-08 19:21 
GeneralRe: Problem in usercontrol Pin
DaveyM6924-Dec-08 0:21
professionalDaveyM6924-Dec-08 0:21 
AnswerRe: Problem in usercontrol Pin
Dragonfly_Lee23-Dec-08 21:46
Dragonfly_Lee23-Dec-08 21:46 
QuestionDataGridView Column no accept tab Pin
Member 197210322-Dec-08 23:15
Member 197210322-Dec-08 23:15 
AnswerRe: DataGridView Column no accept tab Pin
Christian Graus22-Dec-08 23:31
protectorChristian Graus22-Dec-08 23:31 
QuestionPrinting using C++ Pin
Razanust22-Dec-08 23:02
Razanust22-Dec-08 23:02 
AnswerRe: Printing using C++ Pin
Kristian Sixhøj22-Dec-08 23:07
Kristian Sixhøj22-Dec-08 23:07 
AnswerRe: Printing using C++ Pin
benjymous22-Dec-08 23:08
benjymous22-Dec-08 23:08 
AnswerRe: Printing using C++ Pin
N a v a n e e t h22-Dec-08 23:09
N a v a n e e t h22-Dec-08 23:09 
Questiondelegates Pin
sheemap22-Dec-08 22:02
sheemap22-Dec-08 22:02 
AnswerRe: delegates PinPopular
Christian Graus22-Dec-08 22:07
protectorChristian Graus22-Dec-08 22:07 
GeneralRe: delegates Pin
CPallini23-Dec-08 2:05
mveCPallini23-Dec-08 2:05 
AnswerRe: delegates Pin
Brij22-Dec-08 22:38
mentorBrij22-Dec-08 22:38 
AnswerRe: delegates Pin
User 665822-Dec-08 23:13
User 665822-Dec-08 23:13 
Questionc# Pin
sheemap22-Dec-08 21:47
sheemap22-Dec-08 21:47 
AnswerRe: c# Pin
Giorgi Dalakishvili22-Dec-08 21:53
mentorGiorgi Dalakishvili22-Dec-08 21:53 
GeneralRe: c# Pin
sheemap22-Dec-08 21:57
sheemap22-Dec-08 21:57 

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.