Assuming this is for a C# project and assuming that you want to change the default namespace, you need to go to Project Properties, Application tab, and specify "Default Namespace".
Default namespace is the namespace that Visual studio sets when you create a new class. Next time you do Right Click > Add > Class it would use the namespace you specified in the above step.
"Default Namespace textbox in project properties is disabled"
Same with me (VS 2010).
I edited the project file ("xxx.csproj") and tweaked the item. That changed the default namespace.
In visual studio right-click on your project then select Edit Project File or open the .csproj file directly then inside the <PropertyGroup> tag write the following tag