Page Rank

Subscribe

Categories

Recent posts

Alexa Rank

Move PictureBox Up and Down in form in C#


  • This topic helps to learn how to move PictureBox or any other controls up and down inside form in C#.
  • This is done with the help of multithreading process in C#.

PictureBox ClassMove PictureBox Up and Down in form in C#

  • PictureBox class represents a Windows picture box control for displaying an image.

Namespace:  System.Windows.Forms

Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

  • Syntax

Code to display an Image:


  • Through the above code we are loading image to the Image Property of the PictureBox Control.

System.Threading NamespaceMove PictureBox Up and Down in form in C#

  • The System.Threading namespace provides classes and interfaces that enable multithreaded programming.
  • This namespace includes a ThreadPool class that allows you to use a pool of system-supplied threads, and a Timer class that executes callback methods on thread pool threads.

Thread.Start MethodMove PictureBox Up and Down in form in C#

  • Help a thread to be scheduled for execution.

Thread.Abort MethodMove PictureBox Up and Down in form in C#

  • It raises a ThreadAbortException in the thread on which it is invoked, to begin the process of terminating the thread. Calling this method usually terminates the thread.

Move PictureBox Up and Down in form in C#Complete Code

Move PictureBox Up and Down in form in C#


VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)

Leave a Reply

  

  

  

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">