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

C#

 
GeneralRe: Load pID and productname to combobox - c sharp. Pin
ScottM127-May-09 20:47
ScottM127-May-09 20:47 
GeneralRe: Load pID and productname to combobox - c sharp. Pin
misCafe27-May-09 22:47
misCafe27-May-09 22:47 
GeneralRe: Load pID and productname to combobox - c sharp. Pin
ScottM127-May-09 22:54
ScottM127-May-09 22:54 
QuestionActiveX component problems Pin
rasikrodri27-May-09 13:43
rasikrodri27-May-09 13:43 
QuestionTesting Localized Form (Debug vs non-Debug) Pin
cpl27-May-09 13:43
cpl27-May-09 13:43 
QuestionUpdate records problem Pin
desir10227-May-09 13:15
desir10227-May-09 13:15 
AnswerRe: Update records problem Pin
Vimalsoft(Pty) Ltd27-May-09 20:50
professionalVimalsoft(Pty) Ltd27-May-09 20:50 
QuestionWhy multiselected text files don't open in more tabs Pin
Aljaz11127-May-09 13:08
Aljaz11127-May-09 13:08 
Everytime i multiselect files it creates so many tabs as files selected..but there is only text of first file in first tab..other tabs are empty...
Here i have code for opening file:
private void evtOpenFile_Click(object sender, EventArgs e)
        {
            openFileDialog1.Multiselect = true;
            

            if (openFileDialog1.ShowDialog() == DialogResult.OK)
            {

                foreach (String file in openFileDialog1.FileNames)
                {

                    evtNewDocument_Click(sender, e);
                    
                    
                    RichTextBox richTextBox1 = new RichTextBox();

                    richTextBox1 = tabControl1.SelectedTab.Controls[0] as RichTextBox;

                    richTextBox1.LoadFile(openFileDialog1.FileName,RichTextBoxStreamType.PlainText);
                    saveFileDialog1.FileName = openFileDialog1.FileName;

                    FileInfo fi = new FileInfo(openFileDialog1.FileName);
                    string pot = fi.Name;

                    tabControl1.SelectedTab.Text = pot;

                    pot = "";
                }
                

            }
        }


evtNewDocument_Click(sender, e); creates new tab in tabcontrol with selectedindex on it! Still can't figure out what is wrong... PLZ HELP!

THanks
AnswerRe: Why multiselected text files don't open in more tabs Pin
Luc Pattyn27-May-09 13:40
sitebuilderLuc Pattyn27-May-09 13:40 
GeneralRe: Why multiselected text files don't open in more tabs [modified] Pin
Aljaz11127-May-09 13:51
Aljaz11127-May-09 13:51 
GeneralRe: Why multiselected text files don't open in more tabs Pin
Luc Pattyn27-May-09 14:26
sitebuilderLuc Pattyn27-May-09 14:26 
GeneralRe: Why multiselected text files don't open in more tabs Pin
Aljaz11127-May-09 14:29
Aljaz11127-May-09 14:29 
GeneralRe: Why multiselected text files don't open in more tabs Pin
Luc Pattyn27-May-09 14:38
sitebuilderLuc Pattyn27-May-09 14:38 
GeneralRe: Why multiselected text files don't open in more tabs Pin
Aljaz11127-May-09 14:55
Aljaz11127-May-09 14:55 
GeneralRe: Why multiselected text files don't open in more tabs Pin
Luc Pattyn27-May-09 14:58
sitebuilderLuc Pattyn27-May-09 14:58 
GeneralRe: Why multiselected text files don't open in more tabs Pin
Aljaz11127-May-09 15:25
Aljaz11127-May-09 15:25 
GeneralRe: Why multiselected text files don't open in more tabs Pin
Luc Pattyn27-May-09 15:33
sitebuilderLuc Pattyn27-May-09 15:33 
QuestionC++ to C# (struct) Pin
Mohammad Dayyan27-May-09 12:57
Mohammad Dayyan27-May-09 12:57 
AnswerRe: C++ to C# (struct) [not an answer] Pin
Colin Angus Mackay27-May-09 13:27
Colin Angus Mackay27-May-09 13:27 
GeneralRe: C++ to C# (struct) [not an answer] Pin
Mohammad Dayyan27-May-09 14:00
Mohammad Dayyan27-May-09 14:00 
GeneralRe: C++ to C# (struct) [not an answer] Pin
Colin Angus Mackay27-May-09 20:50
Colin Angus Mackay27-May-09 20:50 
AnswerRe: C++ to C# (struct) Pin
Adam Maras27-May-09 14:53
Adam Maras27-May-09 14:53 
AnswerRe: C++ to C# (struct) Pin
Jimmanuel27-May-09 14:54
Jimmanuel27-May-09 14:54 
QuestionThis is a performance issue: Struct vs. Class. Pin
Lecutus127-May-09 10:03
Lecutus127-May-09 10:03 
AnswerRe: This is a performance issue: Struct vs. Class. Pin
DaveyM6927-May-09 10:13
professionalDaveyM6927-May-09 10:13 

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.