Click here to Skip to main content
15,908,111 members
Home / Discussions / C#
   

C#

 
QuestionSuggestions on how to create an efficient Queue generic with random access option Pin
Zerox MXI25-Dec-08 17:33
Zerox MXI25-Dec-08 17:33 
AnswerRe: Suggestions on how to create an efficient Queue generic with random access option Pin
N a v a n e e t h25-Dec-08 17:49
N a v a n e e t h25-Dec-08 17:49 
GeneralRe: Suggestions on how to create an efficient Queue generic with random access option Pin
Zerox MXI25-Dec-08 18:05
Zerox MXI25-Dec-08 18:05 
Question[Message Deleted] Pin
James_Zhang25-Dec-08 16:47
James_Zhang25-Dec-08 16:47 
AnswerRe: control on non client area of form Pin
Not Active25-Dec-08 17:06
mentorNot Active25-Dec-08 17:06 
AnswerRe: control on non client area of form Pin
Christian Graus25-Dec-08 17:08
protectorChristian Graus25-Dec-08 17:08 
GeneralRe: control on non client area of form Pin
James_Zhang25-Dec-08 18:02
James_Zhang25-Dec-08 18:02 
Question[Visual Studio | C#] richtextbox problem Pin
lucas moretti25-Dec-08 14:31
lucas moretti25-Dec-08 14:31 
Hello everybody, I'm fairly new to the subject of c # ...
I think it is simple, I have two forms (Form1 and Form2) in Form1 is a RichTextBox, pressing a button on the Form1 open the form2, i add a button on form2 and when click they add string to richtextbox on form1. The question is do you all right it gives no error, but when I run the program does not add.

Form1---Click Button (in form1) | open form2 ------> Click Button(in form2) | Add string (Text) to richtextbox on form1.

I leave the code to see if any could pull a little help from and a thousand thanks!,
And I apologize for my bad English
Form1

namespace testrich
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
            richTextBox1.AppendText("Original text");
        }

        public void button1_Click(object sender, EventArgs e)
        {
            Form Form2 = new Form2();
            Form2.Show();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            this.Refresh();
        }
    }
}


Form 2

namespace testrich
{
    public partial class Form2 : Form
    {
        public Form2()
        {
            InitializeComponent();
        }

        public void button1_Click(object sender, EventArgs e)
        {
            Form1 Form1 = new Form1();
            Form1.richTextBox1.AppendText("-Attachment-");
        }
    }
}

GeneralRe: [Visual Studio | C#] richtextbox problem Pin
Luc Pattyn25-Dec-08 14:47
sitebuilderLuc Pattyn25-Dec-08 14:47 
GeneralRe: [Visual Studio | C#] richtextbox problem Pin
lucas moretti25-Dec-08 14:59
lucas moretti25-Dec-08 14:59 
GeneralRe: [Visual Studio | C#] richtextbox problem Pin
Christian Graus25-Dec-08 15:24
protectorChristian Graus25-Dec-08 15:24 
GeneralRe: [Visual Studio | C#] richtextbox problem Pin
lucas moretti25-Dec-08 15:35
lucas moretti25-Dec-08 15:35 
GeneralRe: [Visual Studio | C#] richtextbox problem Pin
Luc Pattyn25-Dec-08 15:41
sitebuilderLuc Pattyn25-Dec-08 15:41 
AnswerRe: [Visual Studio | C#] richtextbox problem Pin
N a v a n e e t h25-Dec-08 15:39
N a v a n e e t h25-Dec-08 15:39 
GeneralRe: [Visual Studio | C#] richtextbox problem Pin
lucas moretti25-Dec-08 15:44
lucas moretti25-Dec-08 15:44 
GeneralRe: [Visual Studio | C#] richtextbox problem Pin
Christian Graus25-Dec-08 16:19
protectorChristian Graus25-Dec-08 16:19 
Questionhow to invoke events of dynamically created controls Pin
DEEPNORTH25-Dec-08 11:41
DEEPNORTH25-Dec-08 11:41 
AnswerRe: how to invoke events of dynamically created controls Pin
Not Active25-Dec-08 12:17
mentorNot Active25-Dec-08 12:17 
AnswerRe: how to invoke events of dynamically created controls Pin
User 665825-Dec-08 13:04
User 665825-Dec-08 13:04 
GeneralRe: how to invoke events of dynamically created controls Pin
DEEPNORTH25-Dec-08 16:08
DEEPNORTH25-Dec-08 16:08 
GeneralRe: how to invoke events of dynamically created controls Pin
Luc Pattyn25-Dec-08 14:50
sitebuilderLuc Pattyn25-Dec-08 14:50 
Questiongridview problem Pin
bhatted25-Dec-08 4:28
bhatted25-Dec-08 4:28 
AnswerRe: gridview problem Pin
Lev Danielyan25-Dec-08 4:45
Lev Danielyan25-Dec-08 4:45 
GeneralRe: gridview problem Pin
bhatted25-Dec-08 11:09
bhatted25-Dec-08 11:09 
GeneralRe: gridview problem Pin
bhatted25-Dec-08 11:40
bhatted25-Dec-08 11:40 

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.