I have a main form that has IsMdiContainer = true.
I have a second form (FamilyForm) that is to be the MDI child.
Using the code below, when the line TempForm.MdiParent = Me is executed, the FamilyForm window size, font, and all controls are larger than shown in Visual Studio, possibly 10% larger.
Dim TempForm As New FamilyForm(DataAccess, lvSearch.SelectedItems.Item(0).Text, lvSearch.SelectedItems.Item(0).SubItems(3).Text)
TempForm.MdiParent = Me
TempForm.Name = lvSearch.SelectedItems.Item(0).Text
TempForm.Show()
However, if i remove the line TempForm.MdiParent = Me (no other changes were made), then FamilyForm exactly matches what I see in Visual Studio.
Can anyone tell me what is causing the FamilyForm size to increase when the parent is assigned?