Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
首先,我将显示当前显示的图像;
您会看到 (System.Windows.Forms.)Button 的图像是如何正确放置的,但文本没有正确的左填充。
我怎样才能给按钮的文本从左边大约 30px 填充?我尝试更改按钮的填充本身,但它同时更改了文本和图像的填充。
谢谢,
〜Tgys
尝试设置TextImageRelation属性:
TextImageRelation
button1.TextImageRelation = TextImageRelation.ImageBeforeText;