Click here to Skip to main content
15,891,629 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to use and custom MS Internet Explore? Pin
Small Rat12-Apr-03 6:38
Small Rat12-Apr-03 6:38 
GeneralRe: How to use and custom MS Internet Explore? Pin
Stephane Rodriguez.12-Apr-03 7:52
Stephane Rodriguez.12-Apr-03 7:52 
GeneralAssigning one TabPage to another Pin
monrobot1311-Apr-03 11:43
monrobot1311-Apr-03 11:43 
GeneralRe: Assigning one TabPage to another Pin
Stephane Rodriguez.12-Apr-03 6:33
Stephane Rodriguez.12-Apr-03 6:33 
GeneralRe: Assigning one TabPage to another Pin
monrobot1313-Apr-03 6:31
monrobot1313-Apr-03 6:31 
GeneralRe: Assigning one TabPage to another Pin
Stephane Rodriguez.13-Apr-03 8:14
Stephane Rodriguez.13-Apr-03 8:14 
QuestionSharing data between forms??? Pin
gman4411-Apr-03 11:42
gman4411-Apr-03 11:42 
AnswerRe: Sharing data between forms??? Pin
Adam Turner12-Apr-03 0:21
Adam Turner12-Apr-03 0:21 
You can do it a couple of ways depending on the relationship between Form1 and Form2. (e.g. Form1 creates Form2, Form2 creates Form1 or Form3 creates both).

For "Form1 creates Form2", you can pass an instance of Form1 to Form2
<br />
public Form2<br />
{<br />
   public Form2(Form1 f)<br />
   {<br />
   }<br />
}<br />
...<br />


and then when Form1 is constructing Form2:
Form2 f = new Form2(this);

if "Form2 creates Form1", then you can just setup a public property in Form1 that gets the text from the label but you must keep an instance of Form1 as a field in Form2 so that your function can access it.

And the "Form3 creates both", then construct Form1 first, and then pass its instance to Form2.

--Adam Turner
AnswerRe: Sharing data between forms??? Pin
Stephane Rodriguez.12-Apr-03 6:34
Stephane Rodriguez.12-Apr-03 6:34 
GeneralVisual Studio 2003 and .NET Framework V1.1 ship! Pin
Eric Gunnerson (msft)11-Apr-03 11:13
Eric Gunnerson (msft)11-Apr-03 11:13 
GeneralRe: Visual Studio 2003 and .NET Framework V1.1 ship! Pin
Daniel Turini11-Apr-03 11:21
Daniel Turini11-Apr-03 11:21 
GeneralTab Control Events Not Firing Pin
vlusardi11-Apr-03 11:05
vlusardi11-Apr-03 11:05 
GeneralRe: Tab Control Events Not Firing Pin
monrobot1311-Apr-03 11:16
monrobot1311-Apr-03 11:16 
GeneralRe: Tab Control Events Not Firing Pin
spolia11-Apr-03 15:59
spolia11-Apr-03 15:59 
GeneralCompressed streams Pin
Arun Bhalla11-Apr-03 10:51
Arun Bhalla11-Apr-03 10:51 
GeneralRe: Compressed streams Pin
Nathan Blomquist12-Apr-03 6:10
Nathan Blomquist12-Apr-03 6:10 
GeneralC# requires how much memory?! Pin
pahlsson11-Apr-03 9:47
pahlsson11-Apr-03 9:47 
GeneralRe: C# requires how much memory?! Pin
leppie11-Apr-03 12:33
leppie11-Apr-03 12:33 
GeneralRe: C# requires how much memory?! Pin
pahlsson11-Apr-03 22:41
pahlsson11-Apr-03 22:41 
GeneralRe: C# requires how much memory?! Pin
Martin Cook15-Apr-03 8:39
professionalMartin Cook15-Apr-03 8:39 
QuestionWhat could it be after dot? Pin
kensai11-Apr-03 7:21
kensai11-Apr-03 7:21 
AnswerRe: What could it be after dot? Pin
Andy Smith11-Apr-03 7:26
Andy Smith11-Apr-03 7:26 
AnswerRe: What could it be after dot? Pin
Daniel Turini11-Apr-03 7:44
Daniel Turini11-Apr-03 7:44 
GeneralRe: What could it be after dot? Pin
leppie11-Apr-03 12:41
leppie11-Apr-03 12:41 
AnswerRe: What could it be after dot? Pin
David Stone11-Apr-03 9:33
sitebuilderDavid Stone11-Apr-03 9:33 

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.