Click here to Skip to main content
15,903,201 members
Home / Discussions / C#
   

C#

 
Generalbuiding firewalls Pin
Mridang Agarwalla8-Mar-05 3:14
Mridang Agarwalla8-Mar-05 3:14 
GeneralRe: buiding firewalls Pin
TylerBrinks8-Mar-05 6:30
TylerBrinks8-Mar-05 6:30 
Generalparallel processing, grid computing, clusters....whatever! Pin
Mridang Agarwalla8-Mar-05 3:08
Mridang Agarwalla8-Mar-05 3:08 
Generalwant to generate C# code Pin
rmedo8-Mar-05 2:42
rmedo8-Mar-05 2:42 
GeneralRe: want to generate C# code Pin
J4amieC8-Mar-05 3:35
J4amieC8-Mar-05 3:35 
GeneralRe: want to generate C# code Pin
rmedo8-Mar-05 3:42
rmedo8-Mar-05 3:42 
GeneralRe: want to generate C# code Pin
Werdna8-Mar-05 19:17
Werdna8-Mar-05 19:17 
GeneralPass string from Form2 to textbox of Form1 Pin
ESTAN8-Mar-05 2:42
ESTAN8-Mar-05 2:42 
Hello,

I am at the moment not so experienced with C# but I am learning.

I have the following problem.

On Form1 i have 1 textbox and 1 button. When I press the button it opens a send form (Form2).
There is also one button on Form2, when I press it, the value of the textbox on Form1 needs to change.
Is this possible?
I try to make textbox public but than i need a reference to the Form1 object.
This is ofcourse simplified representation of the problem i have.

If I do this on Form2:
Form1 form1 = new Form1();
form1.textbox.text = "test";
Nothing happens, and i suppose this is normal, because you create a new instance.

What i want to do is on Form2:
Form1.textbox.text = "test";
At compile I receive the following msg: An object reference is required for the nonstatic field, method or property.

I don't think that i have to make the textbox public static. I am a bit lost in this situation, is someone there who can halp me and clear things out.

Thanks

GeneralRe: Pass string from Form2 to textbox of Form1 Pin
SimonS8-Mar-05 2:45
SimonS8-Mar-05 2:45 
GeneralRe: Pass string from Form2 to textbox of Form1 Pin
ESTAN8-Mar-05 3:26
ESTAN8-Mar-05 3:26 
GeneralRe: Pass string from Form2 to textbox of Form1 Pin
ESTAN9-Mar-05 3:52
ESTAN9-Mar-05 3:52 
Generalgraphs in c# Pin
Anonymous8-Mar-05 1:54
Anonymous8-Mar-05 1:54 
GeneralRe: graphs in c# Pin
eggie58-Mar-05 1:57
eggie58-Mar-05 1:57 
GeneralRe: graphs in c# Pin
Anonymous8-Mar-05 2:17
Anonymous8-Mar-05 2:17 
GeneralRe: graphs in c# Pin
Stefan Troschuetz8-Mar-05 2:22
Stefan Troschuetz8-Mar-05 2:22 
Generalvalidator Pin
ABBASI_RA8-Mar-05 1:52
ABBASI_RA8-Mar-05 1:52 
GeneralRe: validator Pin
LongRange.Shooter8-Mar-05 2:14
LongRange.Shooter8-Mar-05 2:14 
GeneralRe: validator Pin
ABBASI_RA8-Mar-05 2:34
ABBASI_RA8-Mar-05 2:34 
GeneralRe: validator Pin
LongRange.Shooter8-Mar-05 3:03
LongRange.Shooter8-Mar-05 3:03 
GeneralC#/ORACLE Übergabe eines Strings mit Steuerzeichen Pin
Anonymous8-Mar-05 1:44
Anonymous8-Mar-05 1:44 
GeneralRe: C#/ORACLE Übergabe eines Strings mit Steuerzeichen Pin
mav.northwind8-Mar-05 1:48
mav.northwind8-Mar-05 1:48 
Generalprogram stucks cause it opened modal dialog in other application Pin
3Dizard8-Mar-05 0:38
3Dizard8-Mar-05 0:38 
GeneralRe: program stucks cause it opened modal dialog in other application Pin
Stefan Troschuetz8-Mar-05 1:23
Stefan Troschuetz8-Mar-05 1:23 
GeneralRe: program stucks cause it opened modal dialog in other application Pin
mav.northwind8-Mar-05 1:43
mav.northwind8-Mar-05 1:43 
GeneralRe: program stucks cause it opened modal dialog in other application Pin
Stefan Troschuetz8-Mar-05 1:52
Stefan Troschuetz8-Mar-05 1:52 

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.