Click here to Skip to main content
15,879,864 members
Home / Discussions / C#
   

C#

 
AnswerRe: Problem when convert 50MB string values to Stream... Pin
Keith Barrow7-Aug-09 3:10
professionalKeith Barrow7-Aug-09 3:10 
AnswerRe: Problem when convert 50MB string values to Stream... Pin
stancrm7-Aug-09 3:12
stancrm7-Aug-09 3:12 
AnswerRe: Problem when convert 50MB string values to Stream... Pin
Luc Pattyn7-Aug-09 3:42
sitebuilderLuc Pattyn7-Aug-09 3:42 
QuestionOpen new tab that not exist Pin
tamir9017-Aug-09 1:43
tamir9017-Aug-09 1:43 
AnswerRe: Open new tab that not exist Pin
Arindam Sinha7-Aug-09 1:58
Arindam Sinha7-Aug-09 1:58 
GeneralRe: Open new tab that not exist Pin
tamir9017-Aug-09 2:04
tamir9017-Aug-09 2:04 
GeneralRe: Open new tab that not exist Pin
Arindam Sinha7-Aug-09 3:20
Arindam Sinha7-Aug-09 3:20 
AnswerRe: Open new tab that not exist Pin
Moreno Airoldi7-Aug-09 2:13
Moreno Airoldi7-Aug-09 2:13 
If I understand correctly what you are asking, you can do something like:

C#
private void AddTabPageIfNotPresent(string TabName, TabControl Control)
{
    foreach (TabPage item in tabControl1.TabPages)
    {
        if (item.Text == TabName) return;
    }
    TabPage tab = new TabPage();
    RichTextBox document = new RichTextBox();
    document.Dock = DockStyle.Fill;
    document.ReadOnly = true;
    tab.Controls.Add(document);
    tab.Text = TabName;
    Control.TabPages.Add(tab);
}


2+2=5 for very large amounts of 2
(always loved that one hehe!)

GeneralRe: Open new tab that not exist Pin
Luc Pattyn7-Aug-09 3:45
sitebuilderLuc Pattyn7-Aug-09 3:45 
GeneralRe: Open new tab that not exist Pin
Moreno Airoldi7-Aug-09 15:18
Moreno Airoldi7-Aug-09 15:18 
GeneralRe: Open new tab that not exist Pin
Luc Pattyn7-Aug-09 15:40
sitebuilderLuc Pattyn7-Aug-09 15:40 
GeneralRe: Open new tab that not exist Pin
tamir90112-Aug-09 5:08
tamir90112-Aug-09 5:08 
GeneralRe: Open new tab that not exist Pin
Moreno Airoldi12-Aug-09 6:56
Moreno Airoldi12-Aug-09 6:56 
GeneralRe: Open new tab that not exist Pin
tamir90112-Aug-09 18:54
tamir90112-Aug-09 18:54 
GeneralRe: Open new tab that not exist Pin
Moreno Airoldi13-Aug-09 0:31
Moreno Airoldi13-Aug-09 0:31 
QuestionProblem to Export DataTable to Excel. Pin
hdv2127-Aug-09 1:10
hdv2127-Aug-09 1:10 
AnswerRe: Problem to Export DataTable to Excel. Pin
Tamer Oz7-Aug-09 1:37
Tamer Oz7-Aug-09 1:37 
GeneralRe: Problem to Export DataTable to Excel. Pin
hdv2127-Aug-09 2:28
hdv2127-Aug-09 2:28 
Questionwhen is Excel shutdown completed? Pin
Harry6667-Aug-09 1:07
Harry6667-Aug-09 1:07 
AnswerRe: when is Excel shutdown completed? Pin
Moreno Airoldi7-Aug-09 2:03
Moreno Airoldi7-Aug-09 2:03 
QuestionRe: when is Excel shutdown completed? Pin
Harry6667-Aug-09 5:06
Harry6667-Aug-09 5:06 
AnswerRe: when is Excel shutdown completed? Pin
Moreno Airoldi7-Aug-09 15:12
Moreno Airoldi7-Aug-09 15:12 
GeneralRe: when is Excel shutdown completed? Pin
Harry66610-Aug-09 23:29
Harry66610-Aug-09 23:29 
GeneralRe: when is Excel shutdown completed? Pin
Moreno Airoldi11-Aug-09 0:10
Moreno Airoldi11-Aug-09 0:10 
GeneralRe: when is Excel shutdown completed? Pin
Harry66611-Aug-09 3:20
Harry66611-Aug-09 3:20 

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.