如何设置所有窗口形式相同的大小 [英] how to set all windows form in same size

查看:96
本文介绍了如何设置所有窗口形式相同的大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我运行我的Windows应用程序时,我的表格表格显示左侧。我的魔杖显示中间的所有项目r ...怎么做?

when i running my windows application my forms tables are displaying left side.i wand to display all item r in middle...how to do this?

推荐答案

如果您的意思是希望将文本居中放在表格中,那么假设您使用的是DataGridview,请设置列样式:

If you mean you want to centre the text in your tables, then assuming you are using a DataGridview, set the column style:
myDateGridView.Columns[myColumnIndex].DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter;

如果那不是你在说什么,那么我们需要更好的信息!

If that isn''t what you are talking about then we need better information!


这篇关于如何设置所有窗口形式相同的大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆