ComboBox
Goto properties of ComboBox: - Select items property used under it and enter the list of countries
SelectedIndexChanged – It is the default event of all the
above three controls, which gets raised immediately once a value is selected.
PictureBox Control: - It is used for displaying images in an
application.
To display an image, the image has to be bound with the control
using any of these properties:
PictureBox
- ImageLocation = < Path of the image>
- Image = Image.FromFile (< Path of the image >)
- Image = Image.FromStream ( stream stream)
Step1 – By
default pictureBox control doesn’t have any border. If we want to give a border
to the control, we need to set the BorderStyle Property either as a
fixed single or fixed 3D.
Step2 – By
default the image is bigger than the pictureBox so it will not display the
complete image. To place or handle the image placement under the control we use
the size mode property, which can be set with values like- Starched image,
outsize and center image, default is normal.
Timer: -
This control is used for execution of code for specified interval regularly i.e. once the specified frequency gets allows.
Timer provided Four members init that are-
- Interval Property: - Used for specifying the frequency for execution of the code, which should be given in millisecond.
- Tick Event: - The code which should be executed by the timer should be written under his event
- Start : - It’s a method which starts the execution of timer.
- Stop : - It’s a method which stops the execution of timer.
No comments:
Post a Comment