0

美好的一天!我有一个非常棘手的问题。在我的应用程序中,我有内部带有图像的按钮。此按钮的所有属性:

    Me.cmdSelectAll.BackColor = System.Drawing.SystemColors.Control
    Me.cmdSelectAll.Image = CType(resources.GetObject("cmdSelectAll.BackgroundImage"), System.Drawing.Image)
    Me.cmdSelectAll.ImageAlign = Drawing.ContentAlignment.BottomRight
    Me.cmdSelectAll.Cursor = System.Windows.Forms.Cursors.Default
    Me.cmdSelectAll.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
    Me.cmdSelectAll.ForeColor = System.Drawing.SystemColors.ControlText
    Me.cmdSelectAll.Location = New System.Drawing.Point(0, 282)
    Me.cmdSelectAll.Name = "cmdSelectAll"
    Me.cmdSelectAll.Padding = New System.Windows.Forms.Padding(0, 0, 0, 0)
    Me.cmdSelectAll.RightToLeft = System.Windows.Forms.RightToLeft.No
    Me.cmdSelectAll.Size = New System.Drawing.Size(22, 22)
    Me.cmdSelectAll.TabIndex = 11
    Me.cmdSelectAll.TabStop = False
    Me.ToolTip1.SetToolTip(Me.cmdSelectAll, "Select All Channels")
    Me.cmdSelectAll.UseVisualStyleBackColor = False

当我以win7的默认文本大小运行它时,图像出现在中心,一切正常。但是当我设置一些自定义的文本大小值(115%)时,我的图像突然变得更加向右和向下。它发生在我所有按钮的图像中。你能回答我为什么会发生这种情况,我该如何解决这个问题?谢谢

4

0 回答 0