Few days ago Jason Zander Microsoft Corporate Vice President has been held a keynote about the new tool for rapid application development called Visual Studio LightSwitch. It is like standard Visual Studio extension with a lot of capability in creating tables, data forms etc. The main propose of this tool is deleveloping business application which can be connected to local database or cloud service and SQL Azure. Every table with data can be searched by any column at the same time, as well as exported in to Excel. The first Beta version will be released on 23. August. Can’t wait to see the tool. More information about LightSwitch can be seen on official site at http://www.microsoft.com/visualstudio/en-us/lightswitch. The link also contains Jason Zender keynote about LightSwitch.
If you experiencing bug with copy and paste in Visual Studio 2010, you probably need to check this blog post.
Symptom of this bug is when you try to copy small amount of text in VS 2010 error apears with the following message: “Insufficient available memory to meet the expected demands of an operation at this time, possibly due to virtual address space fragmentation. Please try again later.”.
Direct download link for this fix is here.
Jučer je u kinu Palas u Banjaluci održan DevDays Bosne i Hercegovine i prezentirane nove verzije Visual Studia 2010 i SQL Server 2008 R2. Prezentacijska datoteka i demo programi sa teme Windows 7 for Developers mogu se skinuti sa ovog linka.
Svima se zahvaljujem na posjeti i ocjenama prezentacije. Snimak prezentacije se može pogledati na ovom linku: http://channel9.msdn.com/posts/panjkov/DevDays-2010-Developing-for-Windows-7-Bahrudin-Hrnjica/ .
P.S. U koliko ima još neko pitanje vezano za ovu temu moze postaviti kao komentar.
Yesterday in Cinema Palas Banja Luka was held DevDays of Bosnia and Herzegovina and presented a new versions of Visual Studio 2010 and SQL Server 2008 R2.
Powerpoint file and demos of “ Windows 7 for Developers” presentation can be downloaded from this link.
I thank everyone for visiting and evaluations of the presentation.
If there is still some questions regarding this topic it can be posted as a comment, and I will try to give answer on it.
Bosanska verzija teksta može se pročitati ovdje.
With releasing the WPF platform, there are good reasons and questions of what will happen with WindowsForms platform.The official said, for this platform are promising and there is no concern, and it will be continue to develop. Needles to say that the WindowsForms is the most common platform. The News coming from the new version of VS 2010 confirm this fact, and this post will be exactly related to new features in WindowsForms. With the new version of Visual Studio 2010 there is a new control: Char Control .
This control is located in the System.Windows.Forms.DataVisualization namespace. Looking thought the ObjectBrowser, there is only one control. Probably they will be more in the future.
Chart control has support for connecting to external data source, which means that we can use and connect it directly to database, through one of the existing ORM maper (DataSet, LINQtoSQL or EF). In this post, we will make a simple example with applying the Chart control.
At the beginning let’s create Windows Forms application via File-> New -> Project.
Create EF model for the Northwind database, with standard tables: Orders and Order_Details.
In fact, when you open the Form1 and show the DataSources window, our tables are shown, but the designer does not allow us to drag and drop them in to the form (see picture below).
In order to use the DataSources designer window, we need to add these tables as objects of the DataSources. For this purpose choose Add New DataSource button, then choose Object item and choose Next button (see picture below).
Then in the next window, select our Tables and finish the wizard.
DataSources window now looks like the following picture:
We got two new items that can drag on Form1. Drag and drop the DataGrid objects in Form1, and add Chart control from ToolBox as shown in the following picture:
Since the DataGrid controls are already connected to bindingsource, it is now necessary to connect the Chart control with Order_Details table. To show data in the graph we need associate columns Quantity and UnitPrice with the chart control members.
To achieve this, it is neccessery chart1.Datasource apply with orders_detailsBidningSource.
When we apply the data source to the chart control, we are now able to set how data will be presented.Chart control has a Series property, and within Series property you can find properties for displaying data in X and Y axes (see picture below).
With this we finished setting up Chart control.
It is now necessary to load data from the database. Open the Form1.cs file, implement the events Form_Load and ListChanged, similar on the picture below.
We see that we have set up two events for the Form1 Load event and ListChanged event for order_DetailsBidnigSource. The second event is necessary to refresh the Chart control.
If you run the project, the result is similar to the following picture.
When we change the current row Order table, changes the content is below the table, as well as in the chart control. This example, we implemented Master-Detail relationship with two DataGrid and one Chart control.