Your Ad Here

25 May 2008

Visual Basic Interview Questions 2

VB QUESTIONS:
1. What are the options can we set at General section?
Option Private
Option Explicit
Option Compare Text/Binary
Option Base 0/1
2. When will you get the error like "Object does not support this property or Method (438)"?
This error message will be raised when one object try to access unavailable
Property / Method of source object at run-time.
Eg:
Dim x As Object
Set x = Text1
x.Text = "gmk"
x.Clear = 34 'Here Clear property is not available, so error raised.
Which controls can not be placed in MDI?
Controls without Align property cannot be placed Directly on MDI Form
List out controls which does not have events
Shape, Line
5. Which property of textbox cannot be changed at runtime? What is the max size of textbox?
MultiLine Property
6. How many system controls are available
20 Controls
___,_____ and ____ container objects.
PictureBox, Frame, SSTab
___ Property is to compress an image in image control.
Stretch---?
9. ___,___ and __ are difference between image and picture controls.
Stretch, Less Memory, Container
To set the command button for ESC ___ Property has to be changed.
CommandButton.Cancel=True
Is it possible to set a shortcut key for label.
yes. When application receives shortcut from keyboard, It sets the
focus to next control of the form which accepts cursor focus
What is the default property of datacontrol.
NAME
What kind of components can be used as DCOM servers?
Simple Combo
DropDown Combo
DropDown List
__ no of controls in form.
255
OLE is used for _______
Embedding other application on form that compiles the Object Linking and
Embedding Protocals.
What is the need of tab index property is label control
To set the priority for tab key event
___ is the control used to call a windows application.
OLE
Clear property is available in ____,___ control.
List Box
Combo Box
___ Property is used to count no. of items in a combo box.
ListCount
___ is a property to resize a label control according to your caption.
AutoSize
Which controls have refresh method?
PictureBox
_____ is the property to ___,____,____ are valid for recordsource property of data control.
To find the current recordposition in data control.
ObjectName.AbsolutePosition
Timer control contains ________ no. of events.
Only One (Timer)
____ Property is used to lock a textbox to enter a data.
Locked=True
What is the need of zorder method?
To Bring front and to set Back
____ is the difference between Listindex and Tab index.
ListIndex specifies the index number of selected Item.
TabIndex determine the focus priority for Tab Keystroke.
28 ____ property of menu cannot be set at run time.
Index
29. Difference between listbox and combo box.
List Box Combo Box
a) Multiple Item can be Only One item
viewed at a time.
b) Multicolumn is possible. Only Single Column
c) Multi Selection is Only Single Selection
Possible.
d) Check Box style is Not available
Available
30 Can you create a updatecascade, Deletecascade relation in Ms- Access?
If no, give on eample.
Yes we can create.
UpdateCascade- When parent record key column is changed then related
records of transaction table will also be updated.
OnDeleteCascade- When parent record key column is deleted then related
records of transaction table will also be deleted
31 _____ collection in recordset used to assign a value from textbox to table columns without making a binding in datacontrol.
Fields

32 ____ argument can be used to make a menuitem into bold.
Default
33 What is the difference between Msgbox Statement and MsgboxQ function?

34 What is the difference between queryunload and unload in form?
QueryUnload
Unload
This event occurs when the form is unloaded. Generallly, code
for resetting properties to the original values or for clean up operation
is placed here, if required.
35 ___,___ arguments will be used to run a executable program in shell function
Filepath, WindowStyle
36 ___ property used to add a menus at runtime.
Index

37 What is the difference between modal and modeless window?
ModelessWindow-0(Default):
They interacts with the user and they allow the user to switch
Any other form of the application.
ModalWindow-1:
It takes total control of the application and will not let the
Application proceeds unless the form is closed.
38 ___ VB constant make the menu item in centre.
VbPopupMenuCenterCenter

39 To validate a range of values for a property whenever the property
Values changes, which type of property procedure you use?
Change Event
40 What are 3 main differences between flexgrid control and dbgrid control?
Flex Grid DbGrid
---------------------------------------------------------------------
a. Cannot bind with Directly Bound with Database
Database
b. Display read only Data Changes are also affected in Database

No comments: