本文整理匯總了C#中System.Windows.Forms.PictureBox.ToString方法的典型用法代碼示例。如果您正苦於以下問題:C# PictureBox.ToString方法的具體用法?C# PictureBox.ToString怎麽用?C# PictureBox.ToString使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類System.Windows.Forms.PictureBox
的用法示例。
在下文中一共展示了PictureBox.ToString方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: ToStringMethodTest
public void ToStringMethodTest ()
{
PictureBox myPicBox = new PictureBox ();
Assert.AreEqual ("System.Windows.Forms.PictureBox, SizeMode: Normal", myPicBox.ToString (), "#T1");
}
示例2: t_imgTransition_Tick
void t_imgTransition_Tick(object sender, EventArgs e)
{
#if DEBUG
System.Diagnostics.Debug.Print("Timer Triggered");
System.Diagnostics.Debug.Print("Image - {0:D}: {1}", this.img_idx, this.imageList[this.img_idx]);
#endif
/* Swap Picture Objects */
PictureBox tmp = this.picbx_next;
this.picbx_next = this.picbx_visible;
this.picbx_visible = tmp;
#if DEBUG
System.Diagnostics.Debug.Print(picbx_visible.ToString());
#endif
this.picbx_visible.FitContainer();
this.picbx_visible.Center();
this.picbx_visible.Show();
this.picbx_next.Hide();
while (!File.Exists(this.imageList[this.img_idx]) && this.imageList.Length > this.img_idx)
{
this.img_idx++;
}
if (this.imageList.Length <= this.img_idx)
{
UpdateImageList();
this.img_idx = 0;
}
this.picbx_next.Image = Image.FromFile(this.imageList[this.img_idx++]);
}