This transcript is intended to help search engines find these videos. This transcript is not a replacement for the videos.
This demonstration will show you how to implement basic functionality for the Trade-Ideas ActiveX control in the Visual Studio .Net environment, using the C# language. For the sake of this movie we will start with a simple Windows Application project. It contains only one form with few controls on it.
The first step you have to do is to add the Trade-Ideas ActiveX to your project. This can be done in two ways: right-click on the ToolBox area and select “Customize Toolbox …” from the context menu, or use the main menu “Tools” and select “Customize Toolbox…” from the available menu entries.
In the dialog you will have to search for the “TradeIdeasWindowX Control”, select it and confirm the selection. In the ToolBox area you will notice the new added item. Select it and draw the control on your form as any other control in Visual Studio .Net. You can change the control’s properties from the “Properties” window. Let’s suppose that you want to change the font. Select the font property, the font you need, and the size you need.
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 the Visual Studio .Net environment will help you by displaying a list of available properties and methods for each object.
This is all you have to do in order to connect to the server. Notice how few lines of code you need in order to achieve this.
Now let’s try to run the application. Once you send the correct connection information to the server you will start getting trade data.
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. Select the control and in the “Properties” window switch to the “Events” tab. Here select the event you need (in our case “OnAlertSelected”) and double click on it.
You will notice that Visual Studio .Net will prepare the event’s 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 you double click on an alert you will get a message box displaying some information about that alert.
Notice again how few lines of code you need in order to achieve some basic functionality for the Trade-Ideas control. For more information about how to use the “TradeIdeasWindowX” control please consult the written documentation and also the demo projects.
This presentation was created by Alin Faur, email@example.com, for Trade-Ideas.