|
-
Jul 7th, 2007, 07:39 PM
#1
Thread Starter
PowerPoster
-
Jul 7th, 2007, 08:59 PM
#2
Re: NameSpaces
Hi there,
Here's the little I know:
You can change your project's default namespace in Project->Properties->Application(tab)
Each form needs its own using statements. A form is just another class. Each form does not need its own namespace. When you add a new form to your project, you'll see that as a default it gets its own using statements above the namespace and all your code is within your project's default namespace.
c# Code:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace MyProgram
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
}
}
I also think that this is a helpful definition of namespace: http://en.wikipedia.org/wiki/Namespa...puter_science)
I hope that little helps.
-
Jul 7th, 2007, 11:29 PM
#3
Re: NameSpaces
Note that when you change the namespace of your application you might see a couple of warnings and errors, try to clean and rebuild your project. This will probably eliminate them
"I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
My Blog
-
Jul 9th, 2007, 10:30 PM
#4
Thread Starter
PowerPoster
Re: NameSpaces
Thanks guys, I appreciate it.
-We have enough youth. How about a fountain of "Smart"?
-If you can read this, thank a teacher....and since it's in English, thank a soldier.

Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|