Category Archives: Code Examples

Today I Learned How to Create a Xamarin iOS Binding for Objective-C Libraries – Part 2 Combining Libraries

This is part 2 of creating a iOS Binding for the Objective-C Library BEMCheckBox.  In part 1 we compiled the Xcode project into two separate libraries.  One for iphones (ARM architecture) and one for iOS simulators (x86/x64 architecture). In this … Continue reading

Posted in Code Examples, Software Development, Today I Learned | Tagged , , , , | Comments Off on Today I Learned How to Create a Xamarin iOS Binding for Objective-C Libraries – Part 2 Combining Libraries

Today I Learned How to Create a Xamarin iOS Binding for Objective-C Libraries – Part 1 Compiling the Objective-C Library

There is no checkbox for Xamarin Forms applications.  This is a problem because I wanted a checkbox in a application I’m working on.  A switch wasn’t going to cut it. After a bit of research I found that Android had native … Continue reading

Posted in Code Examples, Software Development, Today I Learned | Tagged , , , , | Comments Off on Today I Learned How to Create a Xamarin iOS Binding for Objective-C Libraries – Part 1 Compiling the Objective-C Library

Today I Learned How to Handle Local Notifications in Xamarin on Android

In my previous example I detailed how to schedule notifications in Xamarin on Android but didn’t show the Xamarin Forms application reacting to that specific notification.  Let’s fix that. First override the OnNewIntent method in the MainActivity.  We override this method so notifications will … Continue reading

Posted in Code Examples, Today I Learned | Tagged , , , , | Comments Off on Today I Learned How to Handle Local Notifications in Xamarin on Android

Fixing MSBuild not Exiting

After upgrading to Visual Studio Xamarin 4.1 from 4.0 our TeamCity build suddenly stopped working.  Actually it was working but won’t stop working.  The build would get hang after rebuilding out solution to create the IPA file. The step in question … Continue reading

Posted in Code Examples, Software Development | Tagged , , , | Comments Off on Fixing MSBuild not Exiting

Connect to Android Emulator from VirtualBox

I do all my development inside virtual machines.  This allows me to keep separate development environment for different projects and clients.  I wanted to keep this tradition for developing mobile applications but that turned out to be a bit of challenge. … Continue reading

Posted in Code Examples, Software Development | Tagged , , , , , , | Comments Off on Connect to Android Emulator from VirtualBox

Display a Section only on the First Page in a Crystal Report

To display a section only on the first page but not on other pages right-click the section in question and choose Section Expert. Click the x-2 button to the right Suppress (No Drill down) and add the following formula: Now … Continue reading

Posted in Code Examples | Tagged | Comments Off on Display a Section only on the First Page in a Crystal Report

Visual Cut Doesn’t Like to Waste Space

Just a heads up that Visual Cut is really picky about command line arguments.  Visual Cut does a bunch of stuff with Crystal Reports but in my current project it is just used to print reports on demand.  The printing … Continue reading

Posted in Code Examples, Software Development | Tagged , | Comments Off on Visual Cut Doesn’t Like to Waste Space

SQL Server Dependency Query

You’ve been staring at the SQL Server view vwCustomersGH for the past hour.  The view is part of a project you just started maintaining and like many views and stored procedures in the project you are sure it’s not being … Continue reading

Posted in Code Examples | Tagged , | Comments Off on SQL Server Dependency Query

NUnit Error “Attempted to access an unloaded AppDomain”

I was plagued by the above error but found a workaround, at least one that worked for me.  It’s a one line change to the NUnit config file.  Note, this the actual NUnit config file that is installed in C:Program … Continue reading

Posted in Code Examples | Tagged , | Comments Off on NUnit Error “Attempted to access an unloaded AppDomain”

Upgrading Mini-Compressor to .NET 4.0 Notes Addendum

You can read part one at Upgrading Mini-Compressor to .NET 4.0 Notes post. One item that I feel has been neglected by Visual Studio is the Setup & Deployment projects.  There has been little improvements to them since Visual Studio … Continue reading

Posted in Code Examples | Tagged , , , | Comments Off on Upgrading Mini-Compressor to .NET 4.0 Notes Addendum