Form form1=new Form()
form1.mdiparent=this;
form1.show();
form1.bound=new rectangle(0,0,300,300);
其他类似
form1.mdiparent=this;
form1.show();
form1.bound=new rectangle(0,0,300,300);
其他类似
解决方案 »
- C# winfrom 断点问题
- TreeView的加载,麻烦看看,急
- 关于自定义控件。。。。
- 问个内部缓冲区设置的问题:我将10M后,没有恢复为8KB,操作系统的内存立刻上升到2GB多,系统慢得要死...
- 面向对象问题,软件的功能模块休息应该怎么保存好~?大家讨论下一定给分
- 界面刷新闪烁问题
- C# 里面以 .aspx.cs 为后缀名的文件怎么样接收 http 方式 post 过来的数据
- 当前平台不支持“serviceconfig” --在线等!!感谢!
- 谁给我解释一下什么是托盘程序?谢谢了!
- 如何获得所播放的MP3文件的长度啊?我用MEDIA PLAY控件,谢谢.
- 十万火急!!!怎么样在两个Form之间传递变量值?请举例!!
- 关于datagrid的问题
Form2 fr2 = new Form2();
//将fr2显示在300,0的位置
fr2.Show();
Form3 fr3 = new Form3();
//将fr2显示在600,0的位置
fr3.Show();如何来实现
this.Location = new Point(0,0);
Form2 fr2 = new Form2();
//将fr2显示在300,0的位置
fr2.Location = new Point(300, 0);
fr2.StartPosition = FormStartPosition.Manual;
fr2.Show();
Form3 fr3 = new Form3();
//将fr2显示在600,0的位置
fr2.Location = new Point(600, 0);
fr2.StartPosition = FormStartPosition.Manual;
fr3.Show();
private void Form2_Load(object sender, System.EventArgs e)
{
this.Top=intValue;
this.Left=intValue;
}
xxx.Location=this.comboBox1.Location;
xxx.StartPosition = FormStartPosition.Manual;
xxx.Left=comboBox1.PointToScreen(new Point(0,this.comboBox1.Height)).X;
xxx.Top=comboBox1.PointToScreen(new Point(0,comboBox1.Height)).Y;
xxx.Width=comboBox1.Width;
xxx.Height=300;
xxx.ShowDialog();
这个是一个弹出窗体模拟的例子,模拟从combox上弹出一个子窗体~
如果不是mdi,那就更简单了呀。
你就指定窗体的location呀。有什么问题吗?
static void Main()
{
Application.Run(new Form1());
}private Form1_Load(object sender, System.EventArgs e)
{
this.Bound=new Rectangle(0,0,300,300);
Form2 myForm2=new Form2();
myForm2.Bound=new Rectangle(300,0,300,300);
myForm2.Show(); Form3 myForm3=new Form3();
myForm3.Bound=new Rectangle(600,0,300,300);
myForm3.Show();
}