日期:2014-05-19  浏览次数:20939 次

Form.SizeGripStyle的用法
初学C#,希望高手指点。

------解决方案--------------------
private void ShowMyDialogBox()
{
Form myForm = new Form();
myForm.Text = "My Form ";
myForm.SetBounds(20,20,300,300);
myForm.FormBorderStyle = FormBorderStyle.FixedDialog;

// Display the form with no grip since form is not resizable.
myForm.SizeGripStyle = SizeGripStyle.Hide;

myForm.MinimizeBox = false;
myForm.MaximizeBox = false;
myForm.ShowDialog();
}