Using the DataRepeater Virtual Mode

While answering questions in the forums, I came across a recurring question about how the Virtual Mode works with the DataRepeater control included in the Visual Basic Power Packs. I realized that not many people use this powerful feature so I’d like to discuss how it works and walk you through a sample that uses…

1

Easier Sync

If you’ve been using Data Source Configuration Wizard since Visual Studio 2005, you’ll notice that with Visual Studio 2008 Service Pack 1, there’s a “small” change – on Choose Your Database Objects page, a new checkbox would allow you to “enable local database caching”: This checkbox will be available if the current connection is to…


Writing Event Handler for controls in a DataRepeaterItem

In the MSDN Visual Basic Power Packs forum, I had an embarrassing reply on a DataRepeater event handling question, in which the user asked why his event handling code did not work. Here is the original question: “I want to be able to resize a textbox when a user clicks on a textbox within a…

1

How to Workaround Sorting Errors when Updating Self-Referencing DataSet Tables with Visual Studio 2008 SP1

Hierarchical update is an important feature of typed dataset that refers to the process of saving updated data back to a database while maintaining referential integrity rules. This feature is enhanced in Visual Studio 2008 by introducing a TableAdapterManger component to manage all TableApdaters in a typed dataset. When updating related tables, TableAdapterManager uses foreign-key…

2

Some error messages when you use the Data Source Configuration Wizard in Microsoft Visual Studio 2008 Service Pack 1

After you install Microsoft Visual Studio 2008 Service Pack 1, in some situations, when you try to use Data Source Configuration Wizard to create a connection, you may see the following error messages, Error message 1: Could not load type ‘Microsoft.VisualStudio.DataDesign.SyncDesigner.SyncFacade.SyncManager’ from assembly Microsoft.VisualStudio.DataDesign.SyncDesigner.DslPackage, Version = 9.0.0.0, Culture=neutral, PublicKey Token=b03f5f7f11d50a3a Error message 2: The type…

2

DataRepeater Control for Windows Forms

  The DataRepeater control is available in the Visual Basic Power Packs. As Yun Feng introduced in his post, the Visual Basic Power Packs is included in Visual Studio 2008 Service Pack 1 and will also be shipped in Visual Studio 2010. The DataRepeater control is my favorite component in the Visual Basic Power Packs,…

22

My experience on Connect Feedbacks

Recently I have been working with some Visual Studio feedbacks reported through Microsoft Connect. I found that some feedbacks may contain multiple unrelated issues.  On the other hand, one issue may be reported several times by the same person in different feedbacks. There are also issues about crashing, memory, performance, debugging, etc. I will share…

5

How to get call stack of Visual Studio?

If you want to use the VS debugger to get a call stack or dump file of an exception of VS. You can do so with a second instance of Visual Studio. Here is the steps I would use: 1)      Have your working Visual Studio running: let’s call this Visual Studio as VS1. Proceed to…

2

Building WPF Business Applications using Entity Framework

I’ve been writing a lot about building WPF business applications with Entity Framework using Visual Studio 2008. If you’re just starting this type of development you may want to read the following: Data Binding WPF Lookup Combobox Values to EF Entities Notifying the UI when Entity References Change in Lookup Using the WPF ObservableCollection with…


Using TableAdapters to Insert Related Data into an MS Access Database

I’ve posted before about how to use TableAdapters to update parent-child (master-detail) relationships against SQL server. It’s pretty straightforward and Visual Studio generates all the code for you to properly insert, update and delete your data. However if you’re using MS Access then there’s one thing that Visual Studio doesn’t do because it’s not supported…