本文介绍了如何在窗体中心(图片框)居中(图片框)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 欢迎大家, 我如何将中心(图片框)置于窗体的中心?welcome everyone ,How can i center (picture box) in the center of form ??推荐答案PictureBox1.Location = New Point((Form1.Width / 2)-(PictureBox1.Width / 2), (Form1.Height / 2)-(PictureBox1.Height / 2) 这段代码会实时将PictureBox放在窗体的中心(调试时间)。 !如果让用户放弃,你需要这个在调试中更改表单大小。This code will make the PictureBox in the Center of the form in real time (Debug time).! You need this if you are letting the user to change the form size in the debugging. 这篇关于如何在窗体中心(图片框)居中(图片框)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
07-29 12:25
查看更多