wz2jrz Posted April 26, 2003 Posted April 26, 2003 I have form1 set as MDIParent. I need to set form2 as mdichild but i didnt see any mdichildren property under form2 !! also when i tried setting in code, it says it is readonly property. how's my code- i am setting both forms as new in sub main and then showing form1. from form1 menu, i am opening form2. any help with this appreciated... Quote
*Gurus* divil Posted April 26, 2003 *Gurus* Posted April 26, 2003 From your main form: Dim f As New Form2() f.MdiParent = Me f.Show() That ought to do what you need. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
wz2jrz Posted April 26, 2003 Author Posted April 26, 2003 :) Thanks, it worked out fine... didnt knew it had to be done programmatically Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.