Click here to Skip to main content
15,900,460 members
Home / Discussions / C#
   

C#

 
GeneralRe: Streaming real-time data to a file - recommendations? Pin
Wjousts6-Jan-11 11:52
Wjousts6-Jan-11 11:52 
AnswerRe: Streaming real-time data to a file - recommendations? Pin
jschell6-Jan-11 9:21
jschell6-Jan-11 9:21 
GeneralRe: Streaming real-time data to a file - recommendations? Pin
Wjousts6-Jan-11 11:55
Wjousts6-Jan-11 11:55 
AnswerRe: Streaming real-time data to a file - recommendations? Pin
carbon_golem7-Jan-11 5:14
carbon_golem7-Jan-11 5:14 
Questioncall an opener form method Pin
mabrahao5-Jan-11 3:17
mabrahao5-Jan-11 3:17 
AnswerRe: call an opener form method Pin
Paladin20005-Jan-11 3:43
Paladin20005-Jan-11 3:43 
GeneralRe: call an opener form method Pin
mabrahao5-Jan-11 3:50
mabrahao5-Jan-11 3:50 
GeneralRe: call an opener form method Pin
Paladin20005-Jan-11 3:59
Paladin20005-Jan-11 3:59 
This works for me. Two forms, one with a button and textbox (Form1), the other just a button (Form2).

public partial class Form1 : Form
{
    public Form1()
    {
        InitializeComponent();
    }

    private void button1_Click(object sender, EventArgs e)
    {
        Form2 form2 = new Form2(this);
        form2.Show();
    }

    public void Change(string text)
    {
        textBox1.Text = text;
    }
}

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

    public Form2(Form1 form1) : this()
    {
        _form1 = form1;
    }

    private Form1 _form1;

    private void button1_Click(object sender, EventArgs e)
    {
        _form1.Change("Put some text in the TextBox");
    }
}

GeneralRe: call an opener form method Pin
mabrahao5-Jan-11 4:19
mabrahao5-Jan-11 4:19 
GeneralRe: call an opener form method Pin
Paladin20005-Jan-11 4:22
Paladin20005-Jan-11 4:22 
GeneralRe: call an opener form method Pin
mabrahao5-Jan-11 4:27
mabrahao5-Jan-11 4:27 
GeneralRe: call an opener form method Pin
Paladin20005-Jan-11 4:41
Paladin20005-Jan-11 4:41 
AnswerRe: call an opener form method Pin
Blue_Boy5-Jan-11 4:05
Blue_Boy5-Jan-11 4:05 
GeneralRe: call an opener form method Pin
Luc Pattyn5-Jan-11 5:31
sitebuilderLuc Pattyn5-Jan-11 5:31 
AnswerRe: call an opener form method Pin
dan!sh 5-Jan-11 5:19
professional dan!sh 5-Jan-11 5:19 
AnswerRe: call an opener form method Pin
fjdiewornncalwe5-Jan-11 6:19
professionalfjdiewornncalwe5-Jan-11 6:19 
GeneralRe: call an opener form method [modified] Pin
Paladin20005-Jan-11 6:33
Paladin20005-Jan-11 6:33 
AnswerRe: call an opener form method Pin
fjdiewornncalwe5-Jan-11 7:05
professionalfjdiewornncalwe5-Jan-11 7:05 
AnswerRe: call an opener form method Pin
Paladin20005-Jan-11 7:33
Paladin20005-Jan-11 7:33 
JokeRe: call an opener form method Pin
fjdiewornncalwe5-Jan-11 9:32
professionalfjdiewornncalwe5-Jan-11 9:32 
AnswerRe: call an opener form method Pin
Paladin20005-Jan-11 7:39
Paladin20005-Jan-11 7:39 
QuestionGet image from resource Pin
csrss5-Jan-11 1:38
csrss5-Jan-11 1:38 
AnswerRe: Get image from resource Pin
RaviRanjanKr5-Jan-11 1:51
professionalRaviRanjanKr5-Jan-11 1:51 
AnswerRe: Get image from resource Pin
JF20155-Jan-11 1:54
JF20155-Jan-11 1:54 
GeneralRe: Get image from resource Pin
csrss5-Jan-11 2:31
csrss5-Jan-11 2:31 

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.