Click here to Skip to main content
15,906,708 members
Home / Discussions / C#
   

C#

 
QuestionConnect To MySQL when working behind proxy Pin
Waheed Ur Rehman5-May-10 20:44
Waheed Ur Rehman5-May-10 20:44 
QuestionDataset Accept change is not working Pin
Shahzad.Aslam5-May-10 20:04
Shahzad.Aslam5-May-10 20:04 
AnswerRe: Dataset Accept change is not working Pin
Peace ON5-May-10 21:13
Peace ON5-May-10 21:13 
Questioni m in need of application code Pin
manila dahal5-May-10 18:06
manila dahal5-May-10 18:06 
AnswerRe: i m in need of application code Pin
riced5-May-10 21:11
riced5-May-10 21:11 
AnswerRe: i m in need of application code Pin
Eddy Vluggen6-May-10 1:03
professionalEddy Vluggen6-May-10 1:03 
QuestionUpdating controls on another form Pin
gmhanna5-May-10 17:57
gmhanna5-May-10 17:57 
AnswerRe: Updating controls on another form Pin
Peace ON5-May-10 21:23
Peace ON5-May-10 21:23 
Follow the steps and you will achieve what you want.

1. Declare object of form2 from inside form1.

Form2 f2;


2. In the same manner declare object of form1 from inside form2 (public).

Public Form1 f1;


3. Instantiate form2 from form1 and assign object of form1(f1) to this.
f2 = new Form2();
f2.f1 = this;
f2.show();


Now you have object of form1 in form2.
This way you can pass information of form1 to form2 and by doing reverse you
can pass information of form2 to form1.

Hope this will help!
Jinal Desai - LIVE
Experience is mother of sage....

GeneralRe: Updating controls on another form Pin
DaveyM695-May-10 23:40
professionalDaveyM695-May-10 23:40 
AnswerRe: Updating controls on another form Pin
DaveyM695-May-10 23:29
professionalDaveyM695-May-10 23:29 
QuestionRead certificate from USB Pin
Maurinho05-May-10 12:34
Maurinho05-May-10 12:34 
AnswerRe: Read certificate from USB Pin
AspDotNetDev5-May-10 15:15
protectorAspDotNetDev5-May-10 15:15 
QuestionAdding text box input to a dataset table Pin
mprice2145-May-10 11:34
mprice2145-May-10 11:34 
AnswerRe: Adding text box input to a dataset table Pin
Dr.Walt Fair, PE5-May-10 11:57
professionalDr.Walt Fair, PE5-May-10 11:57 
GeneralRe: Adding text box input to a dataset table Pin
mprice2145-May-10 12:13
mprice2145-May-10 12:13 
GeneralRe: Adding text box input to a dataset table Pin
Dr.Walt Fair, PE5-May-10 15:10
professionalDr.Walt Fair, PE5-May-10 15:10 
GeneralRe: Adding text box input to a dataset table [modified] Pin
mprice2145-May-10 15:45
mprice2145-May-10 15:45 
GeneralRe: Adding text box input to a dataset table Pin
Dr.Walt Fair, PE5-May-10 16:47
professionalDr.Walt Fair, PE5-May-10 16:47 
QuestionMessage Removed Pin
5-May-10 9:16
professionalN_tro_P5-May-10 9:16 
QuestionEnum logic problem [modified] Pin
venomation5-May-10 8:02
venomation5-May-10 8:02 
AnswerRe: Enum logic problem Pin
Ian Shlasko5-May-10 8:19
Ian Shlasko5-May-10 8:19 
AnswerRe: Enum logic problem Pin
venomation5-May-10 8:24
venomation5-May-10 8:24 
Questiondocument code Pin
toto_20105-May-10 7:13
toto_20105-May-10 7:13 
AnswerRe: document code Pin
dan!sh 5-May-10 7:24
professional dan!sh 5-May-10 7:24 
AnswerRe: document code Pin
Richard MacCutchan5-May-10 7:26
mveRichard MacCutchan5-May-10 7:26 

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.