Find Interview Questions for Top Companies
Ques:- How would you add elements and pictures to listitems in listview control?
Asked In :- hackerearth,
Right Answer:
To add elements and pictures to list items in a ListView control in VB, you can use the following steps:

1. Set the `View` property of the ListView to `Details` or `LargeIcon` depending on your layout preference.
2. Add an `ImageList` to your form and populate it with images.
3. Assign the `ImageList` to the `SmallImageList` or `LargeImageList` property of the ListView.
4. Use the `Items.Add` method to add items, specifying the image index from the `ImageList`.

Example code:

```vb
' Assuming you have an ImageList named ImageList1 and a ListView named ListView1
ImageList1.Images.Add("image1", Image.FromFile("path_to_image1"))
ImageList1.Images.Add("image2", Image.FromFile("path_to_image2"))

ListView1.SmallImageList = ImageList1

Dim item1 As New ListViewItem("Item
Ques:- How to trap Data Base Error?
Asked In :-
Right Answer:
To trap a database error in VB, you can use error handling with `On Error` statement. For example:

```vb
On Error GoTo ErrorHandler

' Your database operation code here

Exit Sub

ErrorHandler:
MsgBox "Database Error: " & Err.Description
' Additional error handling code
End Sub
```
Ques:- How to check the condition in Msgbox?
Asked In :-
Ques:- How many ways we can access file using VB?
Asked In :-
Right Answer:
In VB, you can access files in three main ways:

1. **File I/O (Input/Output)** using `Open`, `Input`, `Print`, and `Close` statements.
2. **Random Access** using `Open` with the `Random` keyword for fixed-length records.
3. **Binary Access** using `Open` with the `Binary` keyword for reading and writing binary files.
Ques:- How would you add elements in TreevieW Control.
Asked In :-
Ques:- Difference between a function and a subroutine, Dynaset and Snapshot,early and late binding, image and picture controls,Linked Object and Embedded Object,listbox and combo box,Listindex and Tab index,modal and moduless window, Object and Class,Query unload and unload in form, Declaration and Instantiation an object?
Asked In :-
Ques:- Describe: In of Process vs. Out of Process component. Which is faster?
Asked In :-
Ques:- What do you mean by HTTP?
Asked In :-
Ques:- What is the use of parameters collection?
Asked In :-
Ques:- What do you mean by Databound Controls? Explain.
Asked In :-
Ques:- Diff types of Lock Types?
Asked In :-
Ques:- What is the use of NEW Keyword? Explain.
Asked In :-


The Visual Basic (VB) category on takluu.com is tailored for developers and IT professionals preparing for interviews focused on VB programming and application development. Visual Basic, a product of Microsoft, offers an event-driven programming environment ideal for building user-friendly Windows desktop applications rapidly.

This section covers fundamental and advanced topics including VB syntax, variables, data types, control structures, procedures, functions, error handling, and event-driven programming. You will also find detailed explanations on working with forms, controls, ActiveX components, and database connectivity using ADO or DAO.

Interview questions often focus on your ability to write efficient code, debug applications, and design intuitive interfaces. Candidates preparing for roles such as VB Developer, Software Engineer, or Application Programmer will benefit from learning about object-oriented features in VB, modular programming, and integration with other Microsoft technologies like Excel VBA.

The content also addresses real-world scenarios like automating business processes, managing user inputs, and handling exceptions gracefully. Understanding legacy VB applications and transitioning to VB.NET or other modern platforms is an added advantage.

At Takluu, we provide comprehensive study materials, coding examples, and interview tips to help you master Visual Basic and succeed in your technical interviews.

Whether you are a beginner or experienced developer, this category equips you with the skills needed to build robust Windows applications and excel in your career.

AmbitionBox Logo

What makes Takluu valuable for interview preparation?

1 Lakh+
Companies
6 Lakh+
Interview Questions
50K+
Job Profiles
20K+
Users