English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

i have taken one form in VB 2005 in its property i chaged mdicontainer = true now it is parent form. i have taken another fom.now i wanted to convert that second form into child so i have used this code and it works.

Dim NewMDIChild As New form1()
NewMDIChild.MdiParent = Me
NewMDIChild.Show()
my question is now i have few more forms which are ready to be child form, for all this form do i have need to write same code again and again or is there any other way. and also how can i change all forms property same time.

2006-11-01 04:54:02 · 2 answers · asked by mausam 1 in Computers & Internet Programming & Design

2 answers

no there is no other way but to write code for each lines. because each form will open by its own place and its target place. all form are not going open by one button, so you have to write codes therefor every single form. and another thing is you cant not setup property all at a time.

2006-11-01 21:44:59 · answer #1 · answered by GLADIATOR 3 · 0 0

It depends on the development environment you're using. If you're using Visual Studio .NET 2005 (or 2003) you should be able to set the MdiParent property in the Designer window, which then generates the code you wrote automatically.

To do this, right click on the form you want to manipulate, select Properties, and then scroll down the Properties window until you see the MdiParent property.

If you're using another dev environment, I'm afraid I don't know how to help you.

2006-11-01 14:11:22 · answer #2 · answered by Glen 2 · 0 0

fedest.com, questions and answers