MDI Relation ship



  • 1. help me to convert old VB6 colde
    Magic Gooddy wrote: > This code works, but the result on screen not the same how it works > in VB 6. Why? Where is my mistake? For starters your xmax and ymax values are different between the two listings. If that's not the problem, step through the code line by line in both VB6 and and work out whether the calculations are returning different results. If you find that they are then that'll be the problem line, then you just need to work out why the results are different. It'll be much easier once you know what to look at. -- (O)enone
  • 2. Webcontrol & anchor
    Hi, I am new to DotNet.vb, so don't be suprise.... Is there a way to "anchor" Web components to a page/ For example, i put 2 Btn on the bottom right of my design page. is it possible to move the btn at runtime ? (for them to always be on the same place even if the end user resize the page ) ? just like btn.left properties ? Thanks
  • 3. SQLConnection passing w/ user controls
    Is better to pass the same SQL connection to all of my user controls. Should I make a global object for my SQL connection, or is there some other better choice out there. Thanks DG

MDI Relation ship

Postby krishna » Thu, 16 Dec 2004 13:52:24 GMT


          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 


Re: MDI Relation ship

Postby 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
End Sub

In the first child form from which you are calling the second one, the code

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
End Sub



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

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

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


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 :-) 


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

Return to VB.NET


Who is online

Users browsing this forum: No registered users and 28 guest