TISHITU #12 Tutorial Visual Basic 6.0 how to Load Picture and Randomize function Work @TarunShrivastava
TISHITU #12 Tutorial Visual Basic 6.0 how to Load Picture and Randomize function Work  @TarunShrivastava
Uploaded February 2013 | Updated September 2026, 2 weeks ago
Tishitu explains
Randomize uses Number to initialize the Rnd function's random-number generator, giving it a new seed value. If you omit Number, the value returned by the system timer is used as the new seed value.
Because the Random statement and the Rnd function start with a seed value and generate numbers that fall within a finite range, the results may be predictable by someone who knows the algorithm used to generate them. Consequently, the Random statement and the Rnd function should not be used to generate random numbers for use in cryptography
The Image Control

You've already seen in the previous topic that with an Image control, you can set it's Picture property at design time by going to Picture property, clicking the ellipsis (…), and selecting a file from the Load Picture dialog box. Recall that the main types of files that can be assigned to an Image control are .bmp, .jpg, .ico, and .wmf.

The Image control has a Stretch property, which is set to False by default. When the Stretch property is False, the Image control will automatically resize itself to expand or contract to the size of the picture that is assigned to it. If instead you want the image to fill the specific size that you make the Image control, set the the Stretch property to True, which will cause the picture you assign to the Image control to automatically expand or contract to conform to the size of the control. Depending on the type of image, the image may or may not appear distorted when stretched â€" this is something you need to experiment with.

You can also set the Picture property of an image control in code by using the LoadPicture function, which loads a picture from a file into the control at run-time. The LoadPicture function takes a file name as an argument. Sample syntax is:

imgMyPic.Picture = LoadPicture("C:\SomeDirectory\SomeSubDir\MyPic.bmp")

TISHITU
ISO: 9001-2008
RESEARCH AND CONSULTANCY CELL OF INDUSTRIAL APPLICATION
A Joint Accreditation System of Australia and New Zealand
Copyright © All Rights Reserved tishitu.org Reg No.08122629691/SSI
Accreditation No. M3111204IN

-~-~~-~~~-~~-~-
Please watch: "Lifi Communication by Arduino UNO Download Project"
youtube.com/watch?v=c4gC8dbaiZg
-~-~~-~~~-~~-~-
TISHITU #12 Tutorial Visual Basic 6.0 how to Load Picture and Randomize function Work#4 | PID Tuner App In Matlab With Control SystemInverting amplifier using ic 741Regulated Power Supply using IC 7912, 7812, 7905, 7805TISHITU Basic Electronics Bridge Rectifier tutorialAll terrain VehicleTISHITU APR9600 Audio Recorder IC for Announcements and EmbeddingTISHITU LED Message Board Display By 8051 Microcontroller & Hyper Terminal via Rs232 CommunicationTISHITU Artificial Intelligence Device Control through Speech Recognition with Embedded SystemsAstable Multivibrator Using TransistorLED light Patterns in 8051 microcontroller  2020TISHITU Electrical Power Theft indentification & controlling by metering system of microcontroller
Tishitu |

TISHITU #12 Tutorial Visual Basic 6.0 how to Load Picture and Randomize function Work

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER