我正在涉猎C#,对它还比较不熟悉。我有一个带有文本和图像的按钮。当我运行程序并按下按钮时,按钮被按下,文本也被压缩,但是图像保持静态。
有人知道解决方法吗?
*编辑:
this.btnRename.AllowDrop = true;
this.btnRename.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Right)));
this.btnRename.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
this.btnRename.Image = ((System.Drawing.Image)(resources.GetObject("btnRename.Image")));
this.btnRename.ImageAlign = System.Drawing.ContentAlignment.TopCenter;
this.btnRename.Location = new System.Drawing.Point(675, 3);
this.btnRename.Margin = new System.Windows.Forms.Padding(0);
this.btnRename.Name = "btnRename";
this.btnRename.Size = new System.Drawing.Size(55, 48);
this.btnRename.TabIndex = 7;
this.btnRename.Text = "&Rename";
this.btnRename.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
this.btnRename.UseVisualStyleBackColor = false;
this.btnRename.Click += new System.EventHandler(this.btnRename_Click);