Private Sub Form_Load()
result = vensim_be_quiet(2)
result = vensim_command(
"SPECIAL>LOADMODEL|c:\Users\Public\Vensim\dll\worldapp.vmf")
The vensim_be_quiet call will make the full Vensim DLL act like the minimal DLL. As the form is loaded, the Vensim DLL is told to load a model. For this application no graph sets are required.
NOTE Because of the way the Visual Basic development environment manages working directories you need to include the full path for the model in this statement. If you build an executable file you can rely on the program starting in the directory it is in, and leave off the path for the LOADMODEL command.