bangbang023 Veteran Posted September 28, 2004 Veteran Share Posted September 28, 2004 In the shot below, I have a form, in an MDI environment, maximized. Whenever I maximize it, the titlebar icon is placed next to the file menu. Is there a way to remove it? Link to comment Share on other sites More sharing options...
0 SoftContest Posted September 29, 2004 Share Posted September 29, 2004 Add: [C#] this.ControlBox = false; [VB.NET] Me.ControlBox = False To your MDI Child's Load event. Edit: Make sure you do this from code, setting the property at design-time won't work. Link to comment Share on other sites More sharing options...
0 bangbang023 Veteran Posted September 29, 2004 Author Veteran Share Posted September 29, 2004 that didn't work at all. The thing is too, I need the min, max, and close buttons for when the form isn't maxed within the mdi. Link to comment Share on other sites More sharing options...
0 SoftContest Posted September 30, 2004 Share Posted September 30, 2004 I don't think there's any other .NET native way of doing it. You'll need to go the Win32 API way... Link to comment Share on other sites More sharing options...
0 bangbang023 Veteran Posted September 30, 2004 Author Veteran Share Posted September 30, 2004 Damn, ok, thanks. I'll just leave it. I'm sure my users won't mind. Link to comment Share on other sites More sharing options...
Question
bangbang023 Veteran
In the shot below, I have a form, in an MDI environment, maximized. Whenever I maximize it, the titlebar icon is placed next to the file menu. Is there a way to remove it?
Link to comment
Share on other sites
4 answers to this question
Recommended Posts