Friday, April 6, 2018
graph in VB
graph in VB
Used when creating stand-alone client-side EXEs to be distributed and ran on an end-users machine. This VB.NET Graphing Walk-through includes instructions for Visual Studio.Net developers. Prerequisites: It is recommended that the namespace: Gigasoft.ProEssentials.Enums be included at the top of your source code files utilizing ProEssentials. In VB.NET, use the Imports keyword. For example: Imports Gigasoft.ProEssentials.Enums Our .NET interfaces currently have limited design time functionality. You will have to write a little code (simple, see below) to develop your graphing solutions. In the end, youll prefer our .NET (property, method, event) interface. 99% of your code will set simple properties. Walk-Through: The following information demonstrates how to create your first .NET ProEssentials implementation using the Visual Basic language. It discusses using the WinForm .NET interfaces to add interactive graphing content to your EXEs. Other examples are provided within the product/evaluation. 1) Start Visual Studio.NET and create a new project targeting a [Windows Application] using Visual Basic as your language. Accept the default name of [WindowsApplication1]. 2) When the new project opens, you will be presented the design view of "Form1.vb".
|
Form1.vb [Code]... | ||
6) Double click Form1s Title/Caption Bar to open the code view for "Form1.vb" with default Form1_Load event initialized. The cursor will be within the Form1_Load code section, enter the following code into this section. You can copy and paste if you must, but hand-typing at least some of this code will really help familiarize yourself with the Gigasoft.ProEssentials namespace. Note: adding the following Imports declaration at the top of "Form1.vb" will shorten enumeration syntax.
7) The code above enabled the DataHotSpot event, so we should place some appropriate code in the DataHotSpot event. Within the two drop-down combo boxes at top of code view window, select [Pego1] within the left combo box. Select [PeDataHotSpot] within the right combo box. The cursor should be within the Pego1_PeDataHotSpot event. See the red annotations in the bitmap below. Add the following code to the Pego1_PeDataHotSpot event.
So, the "Form1.vb" code window should contain... 8) Under the Project menu, select "Project Properties". From the Compile tab, select the "Advanced Compile Options..." button. Change the "Target CPU" setting to x86. This is necessary as ProEssentials contains native 32 bit portions. This setting will allow the resulting exe to run on both 32 and 64 bit systems. |
Run the project... | Success!!! |
This completes this walkthrough. Please read the remaining sections within Chapter 2 and review the demo code and documentation thats installed with the eval/product. Once installed, the demo program can be accessed via shortcut... Start / All Programs / ProEssentials v6 / PeDemo Note that our main demo is replicated in VB.NET, C#.NET, VB6, and VC6 projects all accessible from the start menu. These are great for modifying an existing demo to test potential modifications before implementing within your applications. |
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.