L liuxn New member Joined Mar 29, 2006 Messages 1 Programming Experience 5-10 Mar 29, 2006 #1 I have a parent form and several child form, i want to disable the parent form's contorl button, suah as maximize,minimize and close button. How can i do that? Please, help me. Thanks.
I have a parent form and several child form, i want to disable the parent form's contorl button, suah as maximize,minimize and close button. How can i do that? Please, help me. Thanks.
kulrom Well-known member Joined May 10, 2005 Messages 2,854 Location Republic of Macedonia Programming Experience 10+ Mar 29, 2006 #2 Inside load event of MDI Parent form just add this line: VB.NET: [SIZE=2][COLOR=#0000ff]Me[/COLOR][/SIZE][SIZE=2].ControlBox = [/SIZE][SIZE=2][COLOR=#0000ff]False[/COLOR][/SIZE] or through properties window (design view) change ControlBox property to false and that's it Upvote 0 Downvote
Inside load event of MDI Parent form just add this line: VB.NET: [SIZE=2][COLOR=#0000ff]Me[/COLOR][/SIZE][SIZE=2].ControlBox = [/SIZE][SIZE=2][COLOR=#0000ff]False[/COLOR][/SIZE] or through properties window (design view) change ControlBox property to false and that's it