|
|
Basic
Option Graph
Project
Files Installation
You must have a working copy of Visual Basic 2010 (.Net) installed
on your computer. It can be the Express or the Full version.
Your download will consist of a single .zip file containing the 5 files
named in step 10 below, plus a copy of these instructions in a text
file, plus an .ico Icon file. Unzip or "Extract" the zip file
to any directory of your choosing.
- In Visual Basic, start a new Project. Name it Basic Option Graph.
- Visual Basic will create the Project and show you Form1.
- In the Toolbox*, under Data, click on the Chart Control and then
click on Form1. This will cause Visual Basic to add a "reference" or
support file behind the scenes so that the Project can use Charts. It
does not matter what the Chart looks like at this point.
- Add a Class** named "EquityOption.vb".
- Add a Class** named "EquityShares.vb".
- Add a Module** named "OptionCalcs.vb".
- The classes and module simply need to exist, they do not need to have
anything in them.
- Save the Project, with the name Basic Option Graph.
- Close the Project.
- Now, use Windows Explorer to copy or move the 5 files you downloaded,
to the directory under the Basic Option Graph Project where there are
already files with the names:
- Form1.vb
- Form1.Designer.vb
- EquityOption.vb
- EquityShares.vb
- OptionCalcs.vb
- Windows Explorer will tell you that the files already exist. Choose
either "Copy and Replace" or "Move and Replace" for each file.
- Now reopen the Basic Option Graph Project in Visual Basic, and the
complete Project should be available. Press F5 to debug the program
and it should run.
- Add the .ico Icon to the Project (or use your own Icon) following
the instructions here: Adding an Icon.
- At this point you can use "Project - Publish Basic Option Graph"
from the menu to make an .exe file, or you can customize the code or
form design however you wish.
* the Toolbox is a collection of Visual Basic Controls, located in a
tab on the left side of your Visual Basic screen.
** How to add Classes and the Module:
- Right-Click the name "Basic Option Graph" in the Visual Basic "Solution
Explorer" window at the top right of the Visual Basic screen.
- A menu will open. Hover your mouse over "Add", and another menu will
open.
- Click on "Class" or "Module" as appropriate.
- Visual Basic will suggest a name for the Class or Module.
- Change the name to what is shown in the instructions, and click "Add"
|