How to install NuGet packages directly

Posted by Anuraj on Tuesday, April 23, 2013

.Net CodeProject Miscellaneous Visual Studio

If you are developing applications using VS 2010 Express editions, you will miss the Package Manager console, which helps us to install libraries or packages via NuGet. The Nuget package manager console is not integrated to VS 2010 Express editions.(Visual Web Developer Express is an exception, it has a package manager console integration). To overcome this issue I found some workarounds like create project in VS C# Express edition, open the same project in VS Web Developer Express and install package(s) using NuGet. But I don’t feel that is a good solution to the problem. Later I found a nice solution using NuGet command line option. You can download the NuGet.exe from codeplex.

K-MUG - Global Azure Bootcamp – 27 April 2013 - Infopark - Kochi

Posted by Anuraj on Friday, April 19, 2013

Miscellaneous User Group Activities

The Kerala Microsoft Users Group (K-MUG) will be organizing a Global Azure Boot camp on 27th April 2013 at Info park Campus in Kochi.

How to get all controls from a form at runtime in C#

Posted by Anuraj on Tuesday, March 26, 2013

.Net .Net 3.0 / 3.5 Miscellaneous Windows Forms

Here is a code snippet which helps you to enumerate all the controls in a form. This snippet can be used for any control, to find the child controls.

Using SynchronizationContext in Windows Forms

Posted by Anuraj on Friday, March 22, 2013

.Net .Net 3.0 / 3.5 CodeProject Windows Forms

Long back I wrote a post about how to fix - System.InvalidOperationException – Cross-thread operation not valid exception, while we try to access user interface elements from a different thread, other than the thread(normally main thread), which created the user interface elements. .NET 2.0 brings us SynchoronizationContext which allows us to execute a section of code in the UI context (the thread that created the UI). Also, it allows us to specify if the background thread will block waiting for the UI thread (using Send) or will not block (using Post). SynchoronizationContext class can be used in Windows Forms, WPF, and ASP.Net etc. For Windows forms, you can get the UI context from the WindowsFormsSynchronizationContext.Current property. For WPF, the implementation is DispatcherSynchronizationContext class.

How to move a window or form without titlebar

Posted by Anuraj on Thursday, March 14, 2013

.Net Win 32 API Windows Forms

In my current project I had to implement move for a Form, which doesn’t have a title bar or FormBorderStyle property set to None. Instead of title bar I was using a Panel with background Image. Here is the code snippet.

Using Microsoft Ink Picture control

Posted by Anuraj on Wednesday, March 6, 2013

.Net .Net 3.0 / 3.5 CodeProject Windows Forms

The InkPicture control provides the ability to place an image in an application and enable users to add ink on top of it. It is intended for scenarios in which ink is not recognized as text but is instead stored as ink. InkPicture control extends the default picturebox control. This post is about working with InkPicture control.

How to prevent automatic screen lock in WP7

Posted by Anuraj on Monday, February 11, 2013

.Net Silverlight Windows Phone

If you are developing some travel applications or fitness applications, you may want to disable automatic screen locking feature of Windows Phone. You can disable this using UserIdleDetectionMode property of PhoneApplicationService.Current class.
MVP
Subscribe


Copyright © 2017 - Anuraj P. Blog content licensed under the Creative Commons CC BY 2.5 | Unless otherwise stated or granted, code samples licensed under the MIT license. This is a personal blog. The opinions expressed here represent my own and not those of my employer. Hosted with ❤ by GitHub