Click here to Skip to main content
15,914,419 members
Home / Discussions / Windows Forms
   

Windows Forms

 
QuestionHow to remotely connect multiple PCs(Windows OS based) computers from a single Mac Pin
ctrlnick11-Jan-08 7:16
ctrlnick11-Jan-08 7:16 
AnswerRe: How to remotely connect multiple PCs(Windows OS based) computers from a single Mac Pin
LongRange.Shooter1-Feb-08 9:52
LongRange.Shooter1-Feb-08 9:52 
QuestionHow to control attribute initialization order for controls? Pin
RichardM110-Jan-08 11:32
RichardM110-Jan-08 11:32 
AnswerRe: How to control attribute initialization order for controls? Pin
Patrick Etc.10-Jan-08 12:23
Patrick Etc.10-Jan-08 12:23 
GeneralRe: How to control attribute initialization order for controls? Pin
RichardM110-Jan-08 12:29
RichardM110-Jan-08 12:29 
GeneralRe: How to control attribute initialization order for controls? Pin
Patrick Etc.10-Jan-08 12:31
Patrick Etc.10-Jan-08 12:31 
GeneralRe: How to control attribute initialization order for controls? Pin
RichardM110-Jan-08 12:48
RichardM110-Jan-08 12:48 
QuestionHow to comunicate between two Windows Forms in BOTH directions???? Pin
szymon7910-Jan-08 8:12
szymon7910-Jan-08 8:12 
I need help with following problem:

I created new project with two Windows Forms called Form1 and Form2. Now, I put on each Form one Button and one Text Box.

The main Form is Form1 which I start the program. When I click Button1, Form2 shows and into Textbox1 in Form2 it puts some text. To do this in Form1 I added code:

#include "Form2.h"
...
private: Form2^ form2;
...
private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e)
{
form2 = gcnew Form2();
form2->textBox1->Text="sometext";
form2->Show();

}
Everything works fine, but..... Now I want do the same in opposite direction. I want to click on Button1 on Form2 and put some text into textbox1 on Form1. How to do this????

I cannot add in Form2 #include "Form1.h" because it will not compile(There are some errors)

Please help me with this "simple" problem.

Best regards
Szymon
GeneralRe: How to comunicate between two Windows Forms in BOTH directions???? Pin
Dave Kreskowiak10-Jan-08 10:36
mveDave Kreskowiak10-Jan-08 10:36 
GeneralRe: How to comunicate between two Windows Forms in BOTH directions???? Pin
szymon7910-Jan-08 10:57
szymon7910-Jan-08 10:57 
GeneralRe: How to comunicate between two Windows Forms in BOTH directions???? Pin
RichardM110-Jan-08 11:19
RichardM110-Jan-08 11:19 
GeneralRe: How to comunicate between two Windows Forms in BOTH directions???? Pin
szymon7910-Jan-08 11:43
szymon7910-Jan-08 11:43 
GeneralRe: How to comunicate between two Windows Forms in BOTH directions???? Pin
RichardM110-Jan-08 12:13
RichardM110-Jan-08 12:13 
GeneralRe: How to comunicate between two Windows Forms in BOTH directions???? Pin
Luc Pattyn10-Jan-08 12:14
sitebuilderLuc Pattyn10-Jan-08 12:14 
GeneralRe: How to comunicate between two Windows Forms in BOTH directions???? Pin
RichardM110-Jan-08 12:20
RichardM110-Jan-08 12:20 
GeneralRe: How to comunicate between two Windows Forms in BOTH directions???? Pin
Patrick Etc.10-Jan-08 12:25
Patrick Etc.10-Jan-08 12:25 
GeneralRe: How to comunicate between two Windows Forms in BOTH directions???? Pin
Luc Pattyn10-Jan-08 12:56
sitebuilderLuc Pattyn10-Jan-08 12:56 
GeneralRe: How to comunicate between two Windows Forms in BOTH directions???? Pin
Luc Pattyn10-Jan-08 12:55
sitebuilderLuc Pattyn10-Jan-08 12:55 
GeneralRe: How to comunicate between two Windows Forms in BOTH directions???? Pin
RichardM110-Jan-08 13:08
RichardM110-Jan-08 13:08 
GeneralRe: How to comunicate between two Windows Forms in BOTH directions???? Pin
Luc Pattyn10-Jan-08 13:13
sitebuilderLuc Pattyn10-Jan-08 13:13 
GeneralRe: How to comunicate between two Windows Forms in BOTH directions???? Pin
RichardM110-Jan-08 13:30
RichardM110-Jan-08 13:30 
Generalscholar & gentleman Pin
Luc Pattyn10-Jan-08 13:43
sitebuilderLuc Pattyn10-Jan-08 13:43 
GeneralRe: How to comunicate between two Windows Forms in BOTH directions???? Pin
Dave Kreskowiak10-Jan-08 13:11
mveDave Kreskowiak10-Jan-08 13:11 
QuestionEnding C# app gracefully on shutdown Pin
Clutchplate10-Jan-08 7:44
Clutchplate10-Jan-08 7:44 
GeneralRe: Ending C# app gracefully on shutdown Pin
Luc Pattyn10-Jan-08 8:22
sitebuilderLuc Pattyn10-Jan-08 8:22 

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.