Notice: Undefined index: userid in /var/www/alldocs/main/HeaderFooter.php on line 82

Notice: Undefined index: username in /var/www/alldocs/main/HeaderFooter.php on line 83
Visual Basic Demo - Transcript (Microsoft VB)

Visual Basic Demo — Transcript

This transcript is intended to help search engines find these videos.  This transcript is not a replacement for the videos.

Part I

This demonstration will show you how to use the Trade-Ideas ActiveX control in your Visual Basic environment.  For the sake of this movie we will start with a simple EXE Application project.  It contains only one form with few controls on it.

The first step in using the Trade-Ideas ActiveX is to add it to your project.  This can be done in three ways: right-click on the ToolBox area and select “Components” from the context menu, or use the main menu “Project” and select the item “Components”, or press the key combination Control + T.

In the “Components” dialog you will have to search for the “TradeIdeasWindow Library”, select it and confirm the selection.  You will notice three new items in the ToolBox area:  first is the “TradeIdeasWindowX” control, the second is the “StatusBarX” control and the last one is the “GenericDispatchX” control.

For our demonstration we will need only the “TradeIdeasWindowX” control.  Add it to your form like any other control in Visual Basic.  Change the control’s properties in any way you want using the “Properties” window of the Visual Basic environment.  Let’s suppose that you want to change the font.  Select the font property, click on it and here you will have to choose whatever font you want and whatever size you want.

Now, let’s try to connect to the server and get some trade data.  For this you will have to provide a valid user name and password to the connection property of the “TradeIdeasWindowX” control.

Notice how Visual Basic environment will help you by displaying a list of available properties and methods for each object.

This is all you need to do in order to connect to the server.  Notice how few lines of code you need.

Now let’s try to run the application.  Once you send the correct connection information you will start getting stock data from the server.

Part II

Now let’s try to implement some events of the “TradeIdeasWindowX” control; for example the “OnAlertSelected” event.  This event is raised every time you double click on an alert in the Trade-Ideas window.  From the “Object” combobox select the “TradeIdeasWindowX” control, then, from the “Procedure” combobox select the event you need (in our case “OnAlertSelected”).

You will notice that Visual Basic will prepare the events’ code procedure skeleton.  In our demonstration we will only show a message box, but here you can place whatever code you need (for example you can display a graph for the selected alert).

Let’s run the application again.  Connect to the server.  Now each time when you double click on an alert you will see a message box displaying some information about that alert.

Notice how few lines of code you need in order to implement some basic functionality for the control.  For more information about how to use the “TradeIdeasWindowX” control please consult the written documentation and also the demo projects.

More Information

This presentation was created by Alin Faur,, for Trade-Ideas.

trade ideas logo
Copyright 2022 Trade Ideas, LLC.
Privacy Statement  /  Disclosure Statement