mirror of
https://github.com/ShareX/ShareX.git
synced 2024-09-30 01:07:21 +13:00
Use MyPictureBox control
This commit is contained in:
parent
0ebcd6bf60
commit
09967e91b4
2 changed files with 9 additions and 9 deletions
|
@ -124,13 +124,12 @@ private void ResetSelected()
|
|||
txtSelectedClipboardContent.Clear();
|
||||
|
||||
pbSelectedClipboardContent.Visible = false;
|
||||
pbSelectedClipboardContent.Image?.Dispose();
|
||||
pbSelectedClipboardContent.Image = null;
|
||||
pbSelectedClipboardContent.Reset();
|
||||
}
|
||||
|
||||
private void LoadImage(Bitmap bmp)
|
||||
{
|
||||
pbSelectedClipboardContent.Image = bmp;
|
||||
pbSelectedClipboardContent.LoadImage(bmp);
|
||||
pbSelectedClipboardContent.Visible = true;
|
||||
}
|
||||
|
||||
|
|
|
@ -33,8 +33,7 @@ private void InitializeComponent()
|
|||
this.btnClearClipboard = new System.Windows.Forms.Button();
|
||||
this.lvClipboardContentList = new System.Windows.Forms.ListView();
|
||||
this.chFormat = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
||||
this.pbSelectedClipboardContent = new System.Windows.Forms.PictureBox();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pbSelectedClipboardContent)).BeginInit();
|
||||
this.pbSelectedClipboardContent = new ShareX.HelpersLib.MyPictureBox();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// txtSelectedClipboardContent
|
||||
|
@ -97,13 +96,16 @@ private void InitializeComponent()
|
|||
this.pbSelectedClipboardContent.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.pbSelectedClipboardContent.BackColor = System.Drawing.SystemColors.Window;
|
||||
this.pbSelectedClipboardContent.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.pbSelectedClipboardContent.DrawCheckeredBackground = true;
|
||||
this.pbSelectedClipboardContent.FullscreenOnClick = true;
|
||||
this.pbSelectedClipboardContent.Location = new System.Drawing.Point(264, 8);
|
||||
this.pbSelectedClipboardContent.Name = "pbSelectedClipboardContent";
|
||||
this.pbSelectedClipboardContent.PictureBoxBackColor = System.Drawing.SystemColors.Window;
|
||||
this.pbSelectedClipboardContent.ShowImageSizeLabel = true;
|
||||
this.pbSelectedClipboardContent.Size = new System.Drawing.Size(512, 544);
|
||||
this.pbSelectedClipboardContent.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
|
||||
this.pbSelectedClipboardContent.TabIndex = 4;
|
||||
this.pbSelectedClipboardContent.TabStop = false;
|
||||
//
|
||||
// ClipboardViewerForm
|
||||
//
|
||||
|
@ -119,7 +121,6 @@ private void InitializeComponent()
|
|||
this.Name = "ClipboardViewerForm";
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||
this.Text = "ShareX - Clipboard viewer";
|
||||
((System.ComponentModel.ISupportInitialize)(this.pbSelectedClipboardContent)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
|
@ -131,6 +132,6 @@ private void InitializeComponent()
|
|||
private System.Windows.Forms.Button btnClearClipboard;
|
||||
private System.Windows.Forms.ListView lvClipboardContentList;
|
||||
private System.Windows.Forms.ColumnHeader chFormat;
|
||||
private System.Windows.Forms.PictureBox pbSelectedClipboardContent;
|
||||
private MyPictureBox pbSelectedClipboardContent;
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue