Home Microsoft Technology Visual Basic Visual Basic Interview Questions 4

Login Form




Visual Basic Interview Questions 4 Print E-mail

1. What are the different ways to Declare and Instantiate an object in Visual Basic 6?
Dim obj as OBJ.CLASS with eitherSet obj = New OBJ.CLASS orSet obj = CreateObject(OBJ.CLASS?) orSet obj = GetObject( , OBJ.CLASS?)orDim obj as New OBJ.CLASS

2. What is the benefit of wrapping database calls into MTS transactions?
If database calls are made within the context of a transaction, aborting the transaction will undo and changes that occur within that transaction. This removes the possibility of stranded, or partial data.

3. What is the Dll required for running the VB?
Vbrun300.dll

4. What is the diff between the Std and Class Module?
Std Global with in the project. Cls Global through out the all project only thing is we want to set the type lib. Class Modules can be Instantiated.

5. How to change the Mouse Pointer?
Screen.MousePointer = VBHourGlass/VBNormal.

6. Have you create Properties and Methods for your own Controls?
Properties Public variable of a Class
Method Public procedure of a class

7. What are properties available in Clip Board?
No Properties Available. Only the methods they are SetText, GetText, Setdata(), Getformat(), Clear

8. What is Tabstrip control?
Libraries of procedure external to the application but can be called from the application.

9. What is the return type of Instr and Strcmp?
Instr integer (Numeric position)
Strcmp - integer ( if both the string are equal they result = 0)
Strcmp (Str1, Str2, Comparetype)
Comparing mode = 0 Binary Comparing
1 Textual Comparing

10. What is control array and how many we can have it with in the form?
Group of control share the same name. Max 32, 767.