Visual Basic
  • VB and MicroStation
  • ActiveX Components for VB Programmers
VB

LA Solutions staff have written a number of technical articles. These include programming, MicroStation®, GeoGraphics, and relational databases. Some articles describe aspects of MicroStation software development, and others provide code examples.

You may also find the BE Newsletter useful. It is published by Bentley Systems.


Visual Basic™

Visual Basic™ Development
Title Article Location Sample Code
Advanced MicroStation Detector MicroStation Detector DLL MicroStationDetector ZIP Archive
File & Folder Browsing Files and Folders Example VB and VBA code available
MicroStation V8 Database Connectivity ZIP Archive ZIP archive includes article & code sample
Controlling MicroStation V8 with Visual Basic ZIP Archive ZIP archive includes article & code sample
Simple MicroStation Detector PDF Document MicroStationDetector VBA Source
Text Wrap VB Project for Text Wrap and Justification VB Project in ZIP archive
Viewing Thumbnails Viewing File Thumbnails Viewing File Thumbnails

Visual Basic is not VBA

Microsoft provides Visual Basic for Applications to software vendors in its VBA Toolkit. The vendor uses the VBA Toolkit to implement and customise VBA for their application. VBA generates binary code that is tightly coupled to the host application. The code is in a container whose nature depends on the vendor's policy. For example, a Microsoft Excel™ VBA project is stored in an Excel workbook or add-in. A MicroStation VBA project is stored in a .mvba file.

Visual Basic cannot read a .mvba binary file. If you want to move VBA code to a VB project, then you should export the source code from the VBA project. Export code from the VBA Interactive Development Environment (IDE) by right-clicking in the Project window and choose the Export option from the pop-up menu.