How to add tooltip to a Windows Form
In Windows Form applications the tooltip functionality is not built into the controls as in HTML objects. To add tooltip to your controls on Windows Forms Open the Windows Form in the designer Drag the ToolTip control from the Common Controls section of…
How to add a DataGridView to a Windows Form
To display data in a DataGridView on a Windows Form Add a new form to the Win Form Application project Drag a BindingSource from the Toolbox to the form The bindingSource object appears below the form Rename the Binding Source Select the…
How to test SOAP web services from outside of the server with a web browser
SOAP web services that accept primitive type arguments (string, int, etc.) can be tested from a web browser. For security reasons this feature is disabled if the web browser runs on another machine. To enable testing the SOAP web services in the test…
DbArithmeticExpression arguments must have a numeric common type
The Microsoft Visual Studio 2013 Entity Framework database query does not support the subtraction of two dates to calculate TimeSpan. For example the following statement will throw a runtime error: site.VisitFrequencySec < ((TimeSpan)(dtNow -…
The underlying provider failed on Open
When you get the following error message in Microsoft Visual Studio 2013 check the inner exception. System.Data.Entity.Core.EntityException was unhandled HResult=-2146233087 Message=The underlying provider failed on Open. Source=EntityFramework The…
The Entity Framework provider … could not be loaded
When you create a new Microsoft Visual Studio 2013 project that uses the Entity Framework you may get the following error message: The Entity Framework provider type ‘System.Data.Entity.SqlServer.SqlProviderServices,…
How to migrate the Visual Studio 2013 user database to SQL Server 2008
When you create a new web application in Microsoft Visual Studio 2013 the user database it creates is version 706. SQL Server 2008 can only open databases up to version 663 or earlier. To migrate the new Visual Studio 2013 databases to SQL Server 2008…
Warning: Attempt to present … on … while a presentation is in progress!
There is a warning message in Xcode, the Apple iOS development environment that can have many different causes. Warning: Attempt to present … on … while a presentation is in progress! In my case Xcode displayed the warning because a button…
Xcode app development troubleshooting
This post is a collection of common error messages you may receive during application development in Xcode. Error message Receiver ‘NSManagedObjectContext’ for class message is a forward declaration Solution Add #import…
Save an image in the Xcode iPhone simulator
When you are testing an app in the Xcode iOS Simulator sometimes you need to select an image in the photo library. To add images to Photos in the Xcode iOS Simulator Run you app in the iOS iPhone Simulator In the Hardware menu select Home to hide your…