MDI Relation ship
by krishna » Thu, 16 Dec 2004 13:52:24 GMT
Hi,
I have doubt in MDI forms
genarally we will set formname.MdiParent=me in the mdi
form if it is child but my doubt is when i open another
child in the child form of the mdi form it is comming out
side when i was runnig the application.
how to set mdi relation in another child of mdi child.plz
give me the reply
Regard,
krishna.
Re: MDI Relation ship
by Mona (Grapecity) » Thu, 16 Dec 2004 18:31:16 GMT
Hi Krishna,
In your MDI form you can write the following code
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Dim f2 As New Form2
f2.MdiParent = Me
f2.Show()
End Sub
In the first child form from which you are calling the second one, the code
is
Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Dim f3 As New Form3
f3.MdiParent = Me.MdiParent
f3.Show()
End Sub
HTH
Mona
Similar Threads:
1.maintaining relation ships of tables at run time
Hello Sir,
I have created database(ms access) and tables at runtime how to maintain
relation ships between the tables. by using vb.net.
Thanking u sir.
2.maintaing relation ships at runtime
Hello Sir,
I have created database(ms access) and tables at runtime how to maintain
relation ships between the tables. by using vb.net.
Thanking u sir.
3.Auto Shipping Auto Shipping Scheduling:car moving auto transport
4.MDI question - how to call other MDI child forms from a MDI chilid
Robert,
frmCOL.MdiParent = Me.MdiParent
Kerry Moorman
"Robert Johnson" wrote:
> Hi all. I have a MDI child form that is a systems maintenance form. I have
> 7 buttons that will be used to call 7 lookup table maintance forms. My code
> to call the lookup table child forms from the child form is the problem.
> How do I code it?
> The MainFrame.vb is the MDI container. I tried setting that as the MdiParent
> but no joy... Obviously I can't use .Me as .Me is a child form also.. So
> how do I do this?
>
> Thanks in advance..
>
> Robert
>
> Here is the one that calls the maintence form for Color:
>
> Private Sub btnColor_Click(ByVal sender As System.Object, ByVal e As
> System.EventArgs) Handles btnColor.Click
>
> Dim frmCOL As New frmColorMaint
>
> frmCOL.MdiParent = GRS2.MainForm <------- this is the MainFrame.vb
> that is the MDI container
>
> frmCOL.Show()
>
> End Sub
>
>
>
5.EF: selecting all the relations of a relation
Hi, I have been using EF since it's release, for the most part, it's saved me
thousands of lines of code. (This is a repost at the request of MS)
I've a scenario I havn't been able to solve with well performing code.
Imagine a model of a phone book, with Companies, Departments and People. A
company has an ID and name, department has an ID and name, and a person has
an ID and name (keeping it simple).
How can I write an entities statement which will return a collections of all
people under a company (regardless of department)?
I considered using something like this:
context.People.Where(p=>p.Department.Company.CompanyId == CompanyIdSearched)
However, my understanding is this goes back to the database to pull the data?
I need to query based on the in-memory data, so I can include data which has
changed but not yet been saved (eg. to check if I've already added a Person
in an import).
What's the most efficient way to query the in-memory context, to get all
People who work for a Company?
Thanks in advance :-)
+M
6. Data.Relation and reflexive relation
7. How to use VB6-shipped controls in VB.Net applications
8. PLEASE HELP - shipping product without a STRONG NAME