
在VB.net中让控件大小和位置随着表单的大小成比例变化的方法
1个回答
展开全部
以form1窗体和command1控件为例
在窗体的Resize事件中写
command1.with=form1.with * a
command1.height=form1.height * b
a和b是百分比看你想怎么调了
在窗体的Resize事件中写
command1.with=form1.with * a
command1.height=form1.height * b
a和b是百分比看你想怎么调了
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询