Technology Programming

Different Properties of the Image & Picture Tool in Visual Basic

    Affect the Image Control's Behavior

    • Properties that affect the behavior of Image controls let you change what this control does once certain actions happen in the program. The "Enabled" property, for example, lets you temporarily prevent the user from clicking on the control. You might use this feature when you're expecting user input for another control, thus making it impossible for the user to use the Image control until the user has provided that input. Since the data type of the "Enabled" property is Boolean, you can give it one of two values: true or false. "Image1.enabled = true" is a sample statement showing how to make an Image control named "image1" able to accept user input.

    Affect the Image Control's Appearance

    • The Image control's appearance properties impact how this control appears on your user input form or another container for the control, such as an Excel spreadsheet. The "Width" and "Height" properties are examples of appearance properties. By setting these, you change how tall and wide an Image control appears to the user. Here's an example of setting these properties to make an Image control appear 200 pixels wide by 150 pixels high:

      image1.width = 200

      image1.height = 150

    Affect the PictureBox Control's Behavior

    • The PictureBox control has more properties than the Image control. An example of a PictureBox property that affects how this control behaves is "WaitOnLoad." By setting this property to true or false, you can set whether this control will accept user input before loading the image specified in its Image property. For example, if you set this property to true, users can't click the control until its image is loaded.

    Affect the PictureBox Control's Appearance

    • Like the Image control, the PictureBox control has several properties affecting how it looks on a spreadsheet or a user input form. One appearance-related property is the "Image" property, which specifies the image the user will see. You set this property either before or during your program's run time. To set it during run time, you can use a statement like "picturebox1.image = "c:\mypictures\house.jpg."

SHARE
RELATED POSTS on "Technology"
WordPress - How to Set up a New Theme to WordPress 3.
WordPress - How to Set up a New Theme to WordPress 3.
Solution of Creative Web Design
Solution of Creative Web Design
The three disciplines of User Experience
The three disciplines of User Experience
Web Design Sheffield Options For Professional Enterprises
Web Design Sheffield Options For Professional Enterprises
Do you have what it takes?
Do you have what it takes?
Segway Cost
Segway Cost
Microsoft Access 2010: What's Coming with Office 2010?
Microsoft Access 2010: What's Coming with Office 2010?
Companies of Web Development in Ireland Provide Designs that Work
Companies of Web Development in Ireland Provide Designs that Work
Penguin Update to Put Red-Flags on Negative SEO
Penguin Update to Put Red-Flags on Negative SEO
Innovative web 2 design templates can make your business famous quickly
Innovative web 2 design templates can make your business famous quickly
Building A Search Engine Friendly Website
Building A Search Engine Friendly Website
Exceptional Advice To Build Up Your Internet Marketing
Exceptional Advice To Build Up Your Internet Marketing
The Benefits of Selecting The Right Hosting Company
The Benefits of Selecting The Right Hosting Company
Is There a Methodology for Making Successful Logos
Is There a Methodology for Making Successful Logos
Benefits of Ruby On Rails Development
Benefits of Ruby On Rails Development
The Power of Colour and Shapes in Your Infant's Life.
The Power of Colour and Shapes in Your Infant's Life.
Advantages of Hiring PSD To HTML Service Providers
Advantages of Hiring PSD To HTML Service Providers
How to Make Responsive Web Design Attractive?
How to Make Responsive Web Design Attractive?
Converting PSD to Responsive HTML
Converting PSD to Responsive HTML
Just a few realy really hints and tips when it comes to website design but look for.
Just a few realy really hints and tips when it comes to website design but look for.

Leave Your Reply

*