Click here to Skip to main content
15,900,724 members
Home / Discussions / C#
   

C#

 
GeneralCrystal Reports Pin
V.23-Mar-05 21:06
professionalV.23-Mar-05 21:06 
GeneralRe: Crystal Reports Pin
Yulianto.23-Mar-05 21:19
Yulianto.23-Mar-05 21:19 
GeneralRe: Crystal Reports Pin
V.24-Mar-05 1:03
professionalV.24-Mar-05 1:03 
GeneralRe: Crystal Reports Pin
Guinness4Strength24-Mar-05 4:19
Guinness4Strength24-Mar-05 4:19 
GeneralRe: Crystal Reports Pin
Yulianto.24-Mar-05 14:00
Yulianto.24-Mar-05 14:00 
General"new" keyword Pin
innocent7323-Mar-05 20:49
innocent7323-Mar-05 20:49 
GeneralRe: "new" keyword Pin
mav.northwind23-Mar-05 21:26
mav.northwind23-Mar-05 21:26 
GeneralRe: "new" keyword Pin
Guinness4Strength24-Mar-05 4:28
Guinness4Strength24-Mar-05 4:28 
ok, let me see if understand you... You have two (or more forms but lets just take two) forms one being the parent of the other (Master-Detail ?)
You want to open the child form and access the properties of the parent form from within the child form ?

Much like mav said just create a reference to the parent form....
//define this prop in your child form
public System.Windows.Form ParentForm=null;

//then in your parent for where you open the child form set the prop
ChildForm CF = new ChildForm();
CF.ParentForm=this;
CF.Show();


now you should be able to access all internal/public props and methods of your parent form from you child form.

NOTE: I did not test the above code, I just typed it....Smile | :)
GeneralMultiple Forms NOT MDI Pin
TofuBug2423-Mar-05 16:45
TofuBug2423-Mar-05 16:45 
GeneralRe: Multiple Forms NOT MDI Pin
Luis Alonso Ramos23-Mar-05 18:47
Luis Alonso Ramos23-Mar-05 18:47 
GeneralRe: Multiple Forms NOT MDI Pin
Robert Rohde23-Mar-05 20:11
Robert Rohde23-Mar-05 20:11 
GeneralRe: Multiple Forms NOT MDI Pin
Guinness4Strength24-Mar-05 4:36
Guinness4Strength24-Mar-05 4:36 
GeneralRe: Multiple Forms NOT MDI Pin
TofuBug2424-Mar-05 13:18
TofuBug2424-Mar-05 13:18 
Generalconvert string to int Pin
LeeeNN23-Mar-05 13:47
LeeeNN23-Mar-05 13:47 
GeneralRe: convert string to int Pin
LeeeNN23-Mar-05 15:20
LeeeNN23-Mar-05 15:20 
GeneralRe: convert string to int Pin
Ashok Dhamija25-Mar-05 0:03
Ashok Dhamija25-Mar-05 0:03 
GeneralDataGrid Pin
DriesDeRudder23-Mar-05 11:10
DriesDeRudder23-Mar-05 11:10 
GeneralRe: DataGrid Pin
Robert Rohde23-Mar-05 19:44
Robert Rohde23-Mar-05 19:44 
GeneralWSDL.exe won't generate group tag from .wsdl Pin
Kant23-Mar-05 10:06
Kant23-Mar-05 10:06 
Generalexposing an object instance over .NET remoting Pin
Doom-Child23-Mar-05 9:35
Doom-Child23-Mar-05 9:35 
GeneralRe: exposing an object instance over .NET remoting Pin
_J_23-Mar-05 9:54
_J_23-Mar-05 9:54 
GeneralRe: exposing an object instance over .NET remoting Pin
Doom-Child23-Mar-05 9:57
Doom-Child23-Mar-05 9:57 
GeneralRe: exposing an object instance over .NET remoting Pin
Doom-Child23-Mar-05 11:27
Doom-Child23-Mar-05 11:27 
GeneralMulti Language Interface Pin
jawwad_jee23-Mar-05 9:32
jawwad_jee23-Mar-05 9:32 
GeneralRe: Multi Language Interface Pin
TylerBrinks23-Mar-05 12:05
TylerBrinks23-Mar-05 12:05 

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.