Click here to Skip to main content
15,917,005 members
Home / Discussions / C#
   

C#

 
QuestionWhats happening to my objects? Pin
leppie6-Sep-02 16:16
leppie6-Sep-02 16:16 
AnswerRe: Whats happening to my objects? Pin
Ed K6-Sep-02 17:47
Ed K6-Sep-02 17:47 
GeneralRe: Whats happening to my objects? Pin
leppie6-Sep-02 18:08
leppie6-Sep-02 18:08 
GeneralRe: Bitwise operators on non byte primitives Pin
leppie6-Sep-02 16:34
leppie6-Sep-02 16:34 
GeneralRe: Bitwise operators on non byte primitives Pin
Rodney S. Foley6-Sep-02 16:57
Rodney S. Foley6-Sep-02 16:57 
GeneralRe: Bitwise operators on non byte primitives Pin
leppie6-Sep-02 17:08
leppie6-Sep-02 17:08 
GeneralRe: Bitwise operators on non byte primitives Pin
Rodney S. Foley6-Sep-02 17:27
Rodney S. Foley6-Sep-02 17:27 
GeneralRe: Bitwise operators on non byte primitives Pin
Jonathan Tan6-Sep-02 23:22
Jonathan Tan6-Sep-02 23:22 
GeneralNeed help with sql insert statement in C# Pin
halbichmi6-Sep-02 6:10
halbichmi6-Sep-02 6:10 
GeneralRe: Need help with sql insert statement in C# Pin
leppie6-Sep-02 7:20
leppie6-Sep-02 7:20 
GeneralRe: Need help with sql insert statement in C# Pin
SimonS6-Sep-02 19:16
SimonS6-Sep-02 19:16 
GeneralRe: Need help with sql insert statement in C# Pin
halbichmi7-Sep-02 3:45
halbichmi7-Sep-02 3:45 
GeneralRecreate My Network Place Pin
D Shen6-Sep-02 3:40
D Shen6-Sep-02 3:40 
GeneralRe: Recreate My Network Place Pin
Ryan Cromwell6-Sep-02 6:00
Ryan Cromwell6-Sep-02 6:00 
GeneralEasy:reference values after dialog show Pin
EdgarBM5-Sep-02 23:57
EdgarBM5-Sep-02 23:57 
GeneralRe: Easy:reference values after dialog show Pin
Stephane Rodriguez.6-Sep-02 0:26
Stephane Rodriguez.6-Sep-02 0:26 
Default param passing is by ref, so nothing prevents you from the caller Form to do this :
Form2 f = new Form2();
f.SetFormData(m_arrayData);
f.Show();

where m_arrayData is whatever collection, such as System.Collections.ArrayList for instance.

Be warned though that .Show() returns immediately after the Form is displayed, thus you never know when the collection is updated, etc. Unless instead of passing a collection, you pass a class with a collection member and a SetDirty() method to tell the caller.

Another interesting point is that the Form2 subform should not call you, but instead raise an event the caller Form has subscribed for. That's much more standard C#/Java programming-style.
See http://www.codeproject.com/csharp/delegates-part1.asp[^]




And I swallow a small raisin.

Questionhow to specify the handle for findfirstfile, etc? Pin
Segal5-Sep-02 20:35
Segal5-Sep-02 20:35 
AnswerRe: how to specify the handle for findfirstfile, etc? Pin
Stephane Rodriguez.5-Sep-02 21:06
Stephane Rodriguez.5-Sep-02 21:06 
GeneralRe: how to specify the handle for findfirstfile, etc? Pin
Anonymous5-Sep-02 21:16
Anonymous5-Sep-02 21:16 
GeneralRe: how to specify the handle for findfirstfile, etc? Pin
Stephane Rodriguez.5-Sep-02 21:20
Stephane Rodriguez.5-Sep-02 21:20 
AnswerRe: how to specify the handle for findfirstfile, etc? Pin
leppie5-Sep-02 23:55
leppie5-Sep-02 23:55 
GeneralOpinion Wanted: XML Component Pin
Fredrick P. Lackey5-Sep-02 16:51
sussFredrick P. Lackey5-Sep-02 16:51 
GeneralRe: Opinion Wanted: XML Component Pin
Stephane Rodriguez.5-Sep-02 20:38
Stephane Rodriguez.5-Sep-02 20:38 
GeneralRe: Opinion Wanted: XML Component Pin
Anonymous6-Sep-02 2:55
Anonymous6-Sep-02 2:55 
GeneralRe: Opinion Wanted: XML Component Pin
Stephane Rodriguez.6-Sep-02 3:17
Stephane Rodriguez.6-Sep-02 3:17 

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.