Category: VB6


Creating List in VB6 from SQL

Creating a dynamic list in vb6 using data from Database. a) Add components from the Components window. b) Add Available References. c) Create a sub filllistview() d) Add connection to object cn e) open connection. f) Add SQL query to a string variable. g) Fetch data h) Add data to list items CODE:-


ScrollBar using VB6

Add a form in VB6 Inside the form, add an ImageViewer (Figure 3). Add a TextBox in ImageViewer (Figure 2) Add a ScrollBar in the form. As shown below. Open the code of the form. Add the code of creating a scrollbar when adding a textbox by clicking the button. The code snippet below shows…
Read more