Menu

Windows Application

How to change the exe name of the Windows Application in Visual Studio 2010 ?

When you create a Windows Application in Visual Studio , by default , the name of the exe is the same name as the Project .

Note that when you try to change or rename the project Read More →

How to mark a method as Obsolete or Deprecated in C# ?

How can you mark a function or a method as deprecated in c# ? . You can do it in c# using the obsolete attribute . For Example :
public class Employee
{

        public string Name { get; set; }

    Read More →           

How to view the XAML Code on the Intellisense popup in Visual Studio 2010 ?

Most of the Developers working on the Visual Studio would love the Intellisense feature that pops up and gives the list of suggested methods , events , properties etc and is useful too .

But how do one view the sourcecode that is covered by the Intellisense Read More →

Install Windows Phone 7 Apps on Phone from unsupported Marketplace countries

Just a week back , i got my new Windows Phone 7 ( HTC Mozart 7 ) to get a feel of how the new Windows Phone 7 OS looks . The Phone looks amazing than my old WM 6 but yet looked like an empty box for a week . Read More →

3 uses of the @ Symbol in c#

1. You can use one of the reserved words of c# with the @ symbol Eg :
string @int = "senthil kumar";
or something like this
string @class ="MCA";
Although you can use this , avoid using one. 2. Before a string specially when using the file paths . You can use
Read More →           

default keyword in c#

The "Default" keyword in c# can be used in the following scenarios . The main use of default comes in to picture when used in the generic code. 1. To return Type's Default Value The Default returns the type's default value. For the Integer , it returns 0 , for Boolean , Read More →

Why doesn’t this cause an Exception ?

I was trying to run the below code snippet in Visual Studio 2010 .
     int Number1 = 320000;

     int Number2 = 320000;

     int Number3 = Number1  * Number2 ;

     MessageBox.Show(Number3.ToString());
The code Read More →

Microsoft Visual Studio 2010 Express for Windows Phone in a trial mode

Do you know , the Visual Studio 2010 Express for Windows Phone 7 runs in a kind of trial mode althought its free ?? I did not know this until i received the following message today .

Microsoft Visual Studio 2010 Express for Windows Phone 7 will run Read More →

Dotnet Developers – Did u notice the Google talk Plugin installer ???

Well , it we only recently that i noticed how the installation of google talk plugin inside the Gmail works . Well , the installation had some interesting information for .NET Developers . Just check the Installation screenshots that i took below . Read More →

.First() throws Error in LINQ or Entity Framework Queries

I use .First() method in some of the Entity Framework LINQ queries to return only one record . This works perfectly similar to the select Top 1 statemnent in SQL . Eg :
var data = (from m in Employees
    where m.Name == "Senthil"
    select m).First()
But , there is Read More →

Caught up with Bugs in My Favourite IDE ( Visual Studio 2010 )

Well , for the last few months i have been facing some serious issues in running Visual Studio 2010  as a result of some error messages / bugs . Here are some of the messages / bugs that i was able to capture .For some of the problems i was Read More →

Using Array.ConvertAll to Convert an array of one type to another in C#

Thanks to one of My friend (Anil pai) , who asked me a question on how to convert a string array to an float/Double Array which made me to explore the  possibilities in .NET and this is when i came across Array.ConvertAll The usual way of doing this is to parse and Read More →

Visual Studio 2010 is faster if the Windows Automation API 3.0 is installed

Does your Visual Studio 2010 run slow ??? Here's David Berg , in his Developer Division Performance Engineering blog explains how to make your VisualStudio 2010 run faster on Windows XP machine by installing the new version of the Windows Automation API. This installation will speed up the display and Read More →

Interesting Statistics on .NET Framework 4.0

Did you know how many classes and interfaces exists in .NET Frameworks 4.0 and how many of them are Sealed / Abstract .??? Here's Scott Dorman , Author of "Teach Yourself Visual C# 2010 in 24 Hours" book -Sams Publishing,sharing the interesting statistics about the number of classes and the Read More →

How to Suppress Splash Screen in Visual Studio and SQL Server Management Studio Express ?

Most of the time , i feel frustrated with the load time of the Visual Studio and SQL Server Management Studio because of the Splash screen that takes a sometime before Visual Studio /SQL Server Management Studio Loads . It takes some 10 seconds for the splash screen to Read More →

Error “The folder path ‘.’ contains an invalid character” in the setup projects

When a setup file is created in Visual Studio 2010 and when we run the installation , it might result in the following error mesage: "The folder path '.' contains an invalid character" . Similar to the screenshot shown below. Read More →

Optional and Named Parameters in C# 4.0

Optional parameters and named Parameters are the new features in C# 4.0.It provides the ability to define a parameter for a function with some default value. Visual Basic had the optional parameters and this is newly introduced in C# 4.0 . When the Method / function is invoked, Read More →

Visual Studio 2010 and .NET Framework 4 Training Kit – June 2010 Release

The Visual Studio 2010 and .NET Framework 4 Training Kit includes presentations, hands-on labs, and demos that introduces or helps one to learn about Visual Studio 2010 features . The June 2010 Release of the Visual Studio 2010 and .NET Framework 4 Training Kit is now available for download from Microsoft Read More →

Object and Collection Initializer in C#

The Object Initializer and Collection Initializer are similar to initialized Array and Object Constructor where we are able to set the properties of the newly created objects or multiple instances of the new object in essentially one line of code. Object initializers are similar to the constructors Read More →

Resources for learning ADO.NET Entity Framework

I’m planning to learn ADO.NET Entity Framework to start working on one of the .NET Projects . So thought of sharing some nice links to learn Entity Framework . Here's are some of the interesting one's that help you to get started with the ADO.NET Entity Framework Blogs and Documentation
  1. MSDN ADO.NET Read More →

© 2011-2013 Senthil Kumar's Blog This is my personal blog .The opinions expressed here represent my own and not those of my employer . All Rights Reserved -- Copyright notice by Blog Copyright