i m using visual studio 2005. i am working on a windows application and i have a form and an mdiparent. On the form i have some buttons wich are control an sql server database and it works fine. when i make the form an mdi child then no one button works!.
This is the code that i use to make the mdi child

Dim newmdichild As New Form1
newmdichild.MdiParent = Me
newmdichild.Show()


can anyone help me please?

Set IsMdiContainer in Parent form properties as True.

its already set to true but its not working

I just ran your code and it works fine.
Check all your settings on both forms.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.