Click here to Skip to main content
15,902,114 members
Home / Discussions / C#
   

C#

 
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 
GeneralFloppy Disk Image Pin
TeraCoder5-Sep-02 15:28
TeraCoder5-Sep-02 15:28 
GeneralSerial Port Pin
Sanjeev Kumar5-Sep-02 11:33
Sanjeev Kumar5-Sep-02 11:33 
GeneralRe: Serial Port Pin
James McCutcheon5-Sep-02 13:45
James McCutcheon5-Sep-02 13:45 
GeneralRe: Serial Port Pin
Sanjeev Kumar6-Sep-02 7:45
Sanjeev Kumar6-Sep-02 7:45 
GeneralRe: Serial Port Pin
bfarley9-Sep-02 7:30
bfarley9-Sep-02 7:30 
GeneralA files icon Pin
Nnamdi Onyeyiri5-Sep-02 7:19
Nnamdi Onyeyiri5-Sep-02 7:19 
GeneralRe: A files icon Pin
Not Active5-Sep-02 8:15
mentorNot Active5-Sep-02 8:15 
GeneralRe: A files icon Pin
Nnamdi Onyeyiri5-Sep-02 8:44
Nnamdi Onyeyiri5-Sep-02 8:44 

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.