We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to add a "Windows Forms grid control" in "Visual Basic 6.0"?

To add a Windows Forms grid control in Visual Basic 6.0 we should follow the below steps.

Steps

Step 1: Create new WF library project.

Step 2: Add form and necessary control to the project.

Step 3: Include below class libraries for InterOp functions.

Adding InterOP function

Step 4:  Need to register Com objects, below code snippet in class file for com registration.

Com file

 

Step 5:  Need to check COM object visibility in Properties -> Application -> Assembly Information -> Check Make assembly COM – visible.

Step 6:  Need to check register for COM interop via Properties -> Build -> Register for COM interop.

Step 7:  Rebuild the application and generate project assembly.

Step 8: Open visual studio command prompt as administrator. And execute below command.

By following above steps generated assembly will be registered in local machine and so it will be exposed as ActiveX control. And it can have tested via opening it in VS ActiveX control test container.

Step 9: For testing functionality, Open Active-X test container in below location.

C:\Program Files (x86) \Microsoft Visual Studio 8\Common7\Tools\tstcon32.exe

Step 10: Select Edit -> Add New Control -> above control will be available in this location and by double clicking on it, that will be integrated in VBA container.

 

Sample

VB: Windows forms grid control in VB6.0

Video

Windows forms grid control in VB6.0

Article ID: Published Date: Last Revised Date: Platform: Control:
6739 04/27/2016 02/08/2017 WinForms GridControl
Tags:
Did you find this information helpful?
Add Comment
You must log in to leave a comment

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon