RE: Urgent, plz help
From: Mohamoss (mohamed.mossad_at_egdsc.microsoft.com)
Date: 03/30/04
- Next message: Mike Bridge: "Re: Why does SqlDecimal.Null apply only to SqlMoney?"
- Previous message: Ty: "Dataset Question"
- In reply to: Bhavna: "Urgent, plz help"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 30 Mar 2004 16:32:44 GMT
Hi
If form one is the caller of form two . I.e. you create and open from2
somewhere inside form1. Then form1 has a reference to form2 but not the
opposite. One way to over come that is to pass a reference to the object
that you want to bind in form1 to the constructor of form2. you have to
write new constructor for form2 that take a textbox( textboxes) . on form1
while creating form2 pass reference to the textboxes that will be binded
from form one .
So you will do something like this
Form2 theotherform = new Form2 ( this.whatevertextbox , ……)
Then in form two save these references in some object just to bind later.
This is not a good solution whoever since this will cause a circular
reference which means bad design
Why don't you send the query result to form1 some way, then you can do the
binding from there.
hope that helps,
Mohamed Mahfouz
MEA Developer Support Center
ITworx on behalf of Microsoft EMEA GTSC
- Next message: Mike Bridge: "Re: Why does SqlDecimal.Null apply only to SqlMoney?"
- Previous message: Ty: "Dataset Question"
- In reply to: Bhavna: "Urgent, plz help"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|