I made my form as Form Border Style= None,but after max() function or Min() function form is loaded with title bar.I don't need title bar at all time. enter image description here
Asked
Active
Viewed 376 times
0
-
Please specify context, WinForm? WebForm? WPF???? – apomene Jul 28 '17 at 10:50
-
See https://stackoverflow.com/questions/505167/how-do-i-make-a-winforms-app-go-full-screen . – User42 Jul 28 '17 at 10:54
-
am using Winform – fidha Jul 28 '17 at 11:02
-
looks like problem in your code. try to search your solution for `FormBorderStyle` modifications. Check this debugging guide, it can help https://blogs.msdn.microsoft.com/visualstudio/2017/06/26/7-lesser-known-hacks-for-debugging-in-visual-studio/?utm_source=vs_developer_news&utm_medium=referral – Anton Semenov Jul 28 '17 at 11:28
2 Answers
1
Are you using Winforms? If you are, try this:
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;

zekromWex
- 280
- 1
- 4
- 17
-
i tried this ,but from minimize form to maximize window the title bar appear as i mention as image at my question – fidha Jul 28 '17 at 11:01
0
Add a menu strip to the MDI parent and set it to visible = false
.
The following code is a bit hacky but I am doing this in the MDI form's load event handler.
public partial class MDIParent1 : Form
{
public MDIParent1()
{
InitializeComponent();
}
private void MDIParent1_Load(object sender, EventArgs e)
{
Form childForm = new Form();
childForm.MdiParent = this;
childForm.Text = "Child Window";
childForm.Show();
this.MainMenuStrip = new MenuStrip();
this.MainMenuStrip.Visible = false;
};
}

Andez
- 5,588
- 20
- 75
- 116