Guys, does anyone know the answer?
get to load graphics on a control at runtime we have to use the function from screen.
Question is ⇒ To load graphics on a control at runtime, we have to use the function……….., Options are ⇒ (A) LoadImage, (B) LoadPicture, (C) LoadGraphics, (D) None of these, (E) , Leave your comments or Download question paper.
Previous question Next questionQ1. To load graphics on a control at runtime, we have to use the function………..
A. LoadImage B. LoadPicture C. LoadGraphics D. None of these View Answer 17 -4 Explanation:- Answer : BDiscuss it below :!! OOPS Login [Click here] is required to post your answer/resultHelp other students, write article, leave your comments
Normal Quote Code
Header 1 Header 2
Arial Arial Black Comic Sans MS Courier New Helvetica Impact Tahoma Times New Roman Verdana 8 9 10 11 12 13 14 15 18 24 36 Background Color Foreground Color 0.5 1.0 1.2 1.4 1.5 1.6 1.8 2.0 3.0 1 x 1 Previous question Next questionAlso Read Similar Questions Below :
⇒ The button parameter used to identify the right mouse button is ………..
1 2 3 4
⇒ The event occurs when certain key of keyboard is pressed
keyType keyPress KeyEnter None of these
⇒ ………. property is used to return or sets a value that determines whether the control can respond to user-generated events.
Autosize Enable Visible Value
⇒ . ……….property is used to set the maximum length of a text, a textbox can hold
Maxlength Length Multiline None of these
⇒ The important property of a scroll bar is …….
Value Scroll Change None of these
⇒ MDI stands for…………
Multiple Document interpreter
Multiple Document Interface
Multi Document interval
None of these
⇒ Mouse down event takes place when you,
Click the left mouse button
Press the mouse button
Mouse is moved over the control
All of the above
⇒ ……….. is one of the main building blocks in a VB application.
Event Form Procedure Method
⇒ ……….. is a built in function to return the upper bound of an array
Upper() ToUpper() Ubound() URbound()
⇒ Where is a single element of data stored?
Field Record Table Both (a) and (b)
⇒ ……….. is a set of sequentially indexed elements having the same type of data.
Loop Array Variables Objects
⇒ In a class, …………is used to pass object itself as a function argument.
Property Let procedure
Property Get procedure
Property Set procedure
None of these
⇒ Which window shows information that results from debugging statements in our code
Watch window Variables window Locals window Immediate window
⇒ In the statement, Dim Days(7) as String, what part of the array does the number 7 refer to?
Array name Datatype Lowerbound Upperbound
⇒ ……….. cannot be declared in a form or class module
Public constants Private constants Static constants None of these
⇒ …………control provides all standard dialog boxes into our VB form
Common dialog control
Rich text box Input box All of these
⇒ …………… contains shortcuts to frequently performed actions.
Context menu Menu bar Tool bar Tool box
⇒ ……… type of recordset creates a dynamic set of records that represents a database table or the results of a query containing fields from one or more tables.
Table type Dynaset Snapshot All of the above
⇒ ……. are objects that are placed on form objects.
GUI IDE Controls Project
⇒ The Rnd statement will generate a(n)?
decimal value between 0.0 and 1.0
integer value between 0.01 and 1.00
decimal value between 0.01 and 1.00
decimal value between 0.0 and up to 1.0, but not including 1.0
⇒ When the form is first referenced in any manner by program,the triggered event is …….
Load Initialize Activate None of these
⇒ The default event of a text box is ……..
Load Change Click Gotfocus
⇒ In Visual Basic, a variable name cannot be more than ……… characters
450 255 355 560
⇒ Which function should be used to validate that input is not a string before performing arithmetic operations?
IsArithmetic IsNotString IsNumeric IsString
⇒ ……….. is the extension of a class module
.cls .cla .clss None of these
⇒ ………. allows access to the client server databases on a network
OLEDB Jet database engine ODBC None of these
⇒ ………….function is used to return a copy of a string without leading spaces
Ltrim Rtrim Trim Chr
⇒ ……..files contains bitmaps,strings, and other data that we can change without having to reedit and recompile the program code.
Class file Resource file Forms None of these
⇒ All the following statements are true about variable names except
The first character must be a letter
They may include letters,numbers, and underscore(_)
Can be any length
You cannot use a reserved word
⇒ ………… statement enables us to trap runtime error.
To load graphics on a control at runtime, we have to use the function……….
To load graphics on a control at runtime, we have to use the function………. - This objective type question with answer for competitive exams is provided by Gkseries.
To load graphics on a control at runtime, we have to use the function……….
A LoadImage B LoadGraphics C LoadPicture D None of these View Answer Advertisement Advertisement
APSC Prelims - Daily Free Mock Tests
Miscellaneous GK Questions
Q. The Finance Minister under Shivaji was:
Q. Anaemia occurs due to the deficiency of
Q. The achieve high rates of growth of national output, the economy has to
Q. Which one of the following is a revamp of the Integrated Rural Development Programme ?
Q. Who among the following started the newspaper called Voice of India ?
Q. Impure camphor is purified by
Q. Allosomes are the name of
Q. E1 Nino occurs over
Q. Yawning occurs- Q. Stem is usually
Today's Top Current Affairs
CPN-Maoist Centre Chief Pushpa Kamal Dahal Prachanda Set to Become New Nepal PM 25 & 26 December, 2022
Good Governance Day 2022 celebrates on 25 December 25 & 26 December, 2022
Defence Acquisition Council Clears Over ₹84,000 Crore Proposals 25 & 26 December, 2022
Forbes annual list, PV Sindhu among top 25 highest-paid female athletes 25 & 26 December, 2022
Sitiveni Rabuka elected as new Prime Minister of Fiji 25 & 26 December, 2022
Garuda Aerospace Receives Type Certification and RTPO Approvals from DGCA 25 & 26 December, 2022
Rajya Sabha’s productivity during the winter session recorded at 102% 25 & 26 December, 2022
Union Sports Minister Anurag Thakur inaugurates Sports Science Center in Udupi, Karnataka 25 & 26 December, 2022
Union Minister Dr; Jitendra Singh launches revamped Probity Portal, e-HRMS 2.0 Portal 25 & 26 December, 2022
HDFC borrows USD 400 million from IFC for financing green affordable housing 25 & 26 December, 2022
Current Affairs MCQs
Current Affairs Quiz November 2022
Current Affairs Quiz October 2022
Current Affairs Quiz September 2022
Current Affairs Quiz August 2022
Current Affairs Quiz July 2022
Current Affairs Quiz June 2022
Current Affairs Quiz May 2022
Current Affairs Quiz April 2022
Current Affairs Quiz March 2022
Current Affairs Quiz February 2022
Current Affairs Quiz November 2021
Current Affairs Quiz October 2021
State-wise Current Affairs
Andhra Pradesh Current Affairs
Arunachal Pradesh Current Affairs
Assam Current Affairs
Bihar Current Affairs
Chhattisgarh Current Affairs
Delhi Current Affairs
Goa Current Affairs
Gujarat Current Affairs
Haryana Current Affairs
Himachal Pradesh Current Affairs
Jammu & Kashmir Current Affairs
Jharkhand Current Affairs
Karnataka Current Affairs
Kerala Current Affairs
Madhya Pradesh Current Affairs
Maharashtra Current Affairs
Manipur Current Affairs
Meghalaya Current Affairs
Mizoram Current Affairs
Nagaland Current Affairs
Odisha Current Affairs
Puducherry Current Affairs
Punjab Current Affairs
Rajasthan Current Affairs
Sikkim Current Affairs
Tamil Nadu Current Affairs
Telangana Current Affairs
Tripura Current Affairs
Uttarakhand Current Affairs
Uttar Pradesh Current Affairs
West Bengal Current Affairs
Graphics Controls Visual Basic Assignment Help, VB & VB.Net Homework and Project Help
Graphics Controls VB Assignment Help, Online Visual Basic Homework & VB.Net Project Help You din place graphics on three controls: • Form • PictureBox • ImageBox The main difference in these three controls is that the ImageBox control is
Home » Drawing with Visual Basic » Graphics Controls
Graphics Controls VB Help
Facebook Twitter Google+ reddit LinkedIn
You din place graphics on three controls:
• Form • PictureBox • ImageBox
The main difference in these three controls is that the ImageBox control is designed specifically for displaying images and not for creating new images or manipulating them. The other two controls provide drawing methods that let you design graphics at runtime.
The methods for loading graphics on the various controls are simpler than creating graphics from scratch. You can place graphics oncontrols-at design time and , runtime. To load a graphic (bitmap or icon) on a control at design time, you assign its filename to the Picture property of the control in the Properties window. This same procedure can’t change the image displayed at runtime; instead, you must use the LoadPictureO function, which is described shortly.
If the graphic is assigned to a control at design time, ‘it’s stored along with the application. One of the files that the Visual Basic editor generates for each Form in a project has the extension FRX.This is where the image (the actual bitmap) is stored. As a consequence, the size of the application will increase if its Forms contain bitmaps that must be loaded at runtime. The alternative is to load the .graphic at runtime with the LoadPictureO function. This reduces the size of the fRX file, but your application must make sure the file is available at runtime. Vector drawings aren’t loaded, they are generated on the fly (we’ll explore the drawing commands in the second part of the chapter).Sizing Image
When an linage is loaded on a Form or a PictureBox, you must make sure it will fill the available space, unless you let the user select the graphic at runtime. Graphics are usually placed on ImageBox or Picture Box controls. The lmageBox is good for displaying graphics and uses fewer resources than PictureBox controls, The Picture ” Box control provides methods for drawing at runtime and is much more flexible than the Image.Box control. As a consequence, the PictureBox control uses more resources. Each control provides a different property for controlling the appearance of the picture displayedThe ImageBox ,Control’
If the Stretch property is True, the image is resized to fill the area of the ImageBox control. Unless the ~ontrol’s dimensions have the same aspect tatio as the image’s dimensions, the image is distorted as it’s resized. If the Stretch property is False, the ImageBox control behaves like a PictureBox with its Aut6Size property set to True. Figure 6.3 shows two ImageBox controls, both containing the same linage. Notice how the image is resized in the ImageBox control whose Stretch property is True.The PictureBox Control
If the AutoSize property is True, the control is resized to the dimensions of the image it contains. If the AutoSize property is False, only the part of the image that can fit on the control is displayed.Loading and Saving Images
To load a graphic on a control at runtime, use the LoadPicture method as follows:
Forml. Picture – LoadPicture (fileNam)”
The fileName variable is ‘the name of the file containing the graphic. This file can have one of the following ‘extensions:
• BMP Bitmap
• GIF Graphics Interchange Format
• JPG Joipt Photographic Experts Group .
• DIB Device Independent Bitmap
• WMF Windows MetaFile
• EMF Enhanced MetaFile
• reo Icons
At present, Visual Basicdoesn’t support other types of graphic files.
If you use the LoadPicture method without an argument, the current picture is unloaded (along with any drawing or printing painted onto the control or Form with the Circle, Line, PSet, or Print commands). Calling the LoadPicture without an argument clears the control. To remove a graphic from a Picture Box (or any control that’ can play graphics), issue the following command: Picturel. Picture LoadPicture() This technique is similar to the Cls method, which clears any drawing-or printing from a Form or a control.
If your application processes the displayed image during the course of its execution and you want to save the image, you can use the SavePicture statement. Its syntax is as follows:SavePicture picture, filename
The picture argument is the Picture property of the PictureBox or ImageBox control whose contents you want to save, Hndfilenanu: is the name of thefile that will store the image.
To save the contents of the Picturel control to file, you must use a statement like the following:
SavePicture Picturel. Picture, c:/ tmplma·Je .bmp
The Savef’icture statement supports only BMP files, even if the original image loaded on the control comes from a GlF or a JPG file. When prompting the user w.ith the FileOpen common dialog box to select an image file to open, Y9U can use the extensions aMP, GIF, or JPG. In the corresponding FileSave common dialog box though, you can specify only the I3MP(or DIB) extension .