Archive

Archive for the ‘Controls’ Category

Free Chart Control for Framework 3.5 from Microsoft

December 20th, 2008

Finally, Microsoft has relased his own chart control. In fact, it is more truth if we say Microsoft bought Dundas firm’s chart controls. But, as a result, Microsoft has a chart control that can integrates his own developer suites. Now, we can say the nightmare of looking for free chart controls or using Excel chart controls via COM has just finished.

I had been using Corlos Aguilar Mare’s chart controls in my ASP.NET projects because of being free. Now, I feel that I have to thank to Carlos. ;)

I will give some basic knowledge about this control in this essay and complete this essay with a sample .

You can download this free chart control from this link. If you want to glance at some samples you can also reach them with this link.

Microsoft presents his chart controls in two different dll groups. The first dll group is for window applications and the second is for the web applications which will be implemented with ASP.NET. Install the first executable file called ‘MSChart.exe’ that I have referenced in first link. Later on installing, you will see 4 dll files under “…\Program Files\Microsoft Chart Controls\Assemblies” path. These dll files are:

  • System.Web.DataVisualization.Design.dll
  • System.Web.DataVisualization.dll
  • System.Windows.Forms.DataVisualization.Design.dll
  • System.Windows.Forms.DataVisualization.dll

As I mentioned just before, there are 2 dlls for windows applications and 2 dlls for web applications and therefore, there are 2 dll groups totally. The dll files that start with ‘System.Web’ is for web group and the dll files start with ‘System.Windows’ is for windows group.

You can drag and drop these dlls into toolbox of Visual Studio or you can install another add on that is developed for Visual Studio 2008. You can download this add on via this link. When you downloaded and installed, you will see a control named ‘Chart’ underlying ‘Data’ tab of toolbox. An important point, it is not possible to use the chart control of add on without installing MSChart.exe file. But, this add on is not absolutely required. If you install MSChart.exe and if you drag and drop the dll files that I have mentioned above into toolbox is an another solution to use chart control.

Before stepping to my sample, let’s look at the examples of ‘WebSamples’ that I have mentioned above.

Read more…

.NET Framework 3.5, C#, Chart Control, Visual Studio, Visual Studio 2008

Google Maps in Visual Studio

December 19th, 2008

I will give information about the usage of Google Maps that is free if not used for trading in Visual Studio development tool. It is not difficult to have your own google maps application. Because, Google made this technology so easy usage and so, you have one work that is only using it. Not only for Visual Studio also Google represents a Google Maps API for Eclipse and Netbeans. We will work the Google Maps API for Visual Studio development tool.

First of all, we need to download Google Maps API for Visual Studio.

You can download this API from this link.

Select free download and download the API. Then create a web application called GoogleMaps as I did in Visual Studio. Create a new tab called ‘Google Maps’ in toolbox of Visual Studio. You will find a dll file called ‘GMaps.dll’ under the file that you have just downloaded. Drag and drop this dll file into ‘Google Maps’ tab. The screen shot of after completing this operation will be as below.

googlemap1

As seen, there are several controls. GMap, GMoonMap, GEarthMap, GMarsMap, vs. Super :) !!!

We will use Gmap control from these several controls. We have just created a web application. Let’s open Default.aspx file and drag and drop GMap control. The last screen shot will be as below.

Read more…

C#, Google Maps, Visual Studio