The following code example is using the SetWindowPos method call of the user32.dll api. Continue reading How to make your form always on Top in VB 6
The following code snippet can be used for showing the data from the dataset into Datagrid control when you are working in vb 6. Continue reading Bind the DataGrid from database in VB 6
In vb 6, there is no any property or method to make a form the topmost window but we can do with the help of SetWindowPos method in user32 win API. Continue reading How to make form Always on Top in VB 6
In the following code we are using ADODB object so first we need to add a reference of ‘Microsoft ActiveX Data Objects’ in the Visual Basic project before using ADO libraries Continue reading Read CSV file into Recordset in vb 6
The following example show how we can read csv (comma-separated values) file in vb 6 code:
Continue reading Read csv file in vb 6 line by line
The following example shows how to use the EnumKey method of the StdRegProv class to enumerate the subkeys in the Computer\ HKEY_CURRENT_USER \Software\Microsoft\ registry key.
Continue reading How to get array of subkey names of any registry key in vb 6
You can use of Shell function in vb 6 to run any external executable file from vb 6 code.
Continue reading How to run an exe file from VB 6
The following example clear all textbox controls on the form. There are many situation when you need to reset all fields of windows form like below picture. You can use For Each loop statement to clear all the textboxes of the form one by one.
Continue reading Clear all Textboxes of the form in vb 6
In this article we will learn little about
FileSystemObject using Visual Basic. In Visual Basic,
FileSystemObject is available for File system I/O operation.
It is originally created for the Visual Basic Scripting Edition. You can not find
FileSystemObject in object library for Visual Basic, actually it is not included in the object library so you need to select the ‘Microsoft Scripting Run-time’ in the Project References dialog box for your project. If you are not able to find this in the list than locate
Scrrun.dll on your system.
The following code describes to copy all files from one directory to another directory using
FileSystemObject in vb 6.0
Continue reading Copy all files from one folder to another in VB 6.0
If you want to know whether a particular application is running or not, you can identify this using following simple code in vb 6.0.
The following example will determine whether Notepad application is running or not in your system.
Continue reading How to check exe is running or not in VB 6.0