Click here to Skip to main content
15,912,837 members
Home / Discussions / C#
   

C#

 
QuestionIComparer Sorting multiple properties. Pin
Vijay Kulavade14-Jan-08 5:02
Vijay Kulavade14-Jan-08 5:02 
GeneralRe: IComparer Sorting multiple properties. Pin
Luc Pattyn14-Jan-08 5:40
sitebuilderLuc Pattyn14-Jan-08 5:40 
GeneralRe: IComparer Sorting multiple properties. Pin
Vijay Kulavade14-Jan-08 7:23
Vijay Kulavade14-Jan-08 7:23 
Generalput a folder Pin
angels77714-Jan-08 4:35
angels77714-Jan-08 4:35 
GeneralRe: put a folder Pin
Pete O'Hanlon14-Jan-08 5:12
mvePete O'Hanlon14-Jan-08 5:12 
GeneralRe: put a folder Pin
angels77714-Jan-08 14:04
angels77714-Jan-08 14:04 
GeneralRe: put a folder Pin
Pete O'Hanlon14-Jan-08 22:25
mvePete O'Hanlon14-Jan-08 22:25 
GeneralRe: put a folder Pin
DaveyM6914-Jan-08 23:36
professionalDaveyM6914-Jan-08 23:36 
If you create forms(classes) inside existing folders in your solution their namespace is automatically created with the folder as part of it.

e.g. If you create an application called WindowsFormsApplication1, then create a folder called MyForms, then add a new form to that folder called Form2 - Form2's code will actually be

namespace WindowsFormsApplication1.MyForms
{
    public partial class Form2 : Form
    {
        public Form2()
        {
            InitializeComponent();
        }
    }
}

and the Form2.Designer.cs file will have
namespace WindowsFormsApplication1.MyForms
{
    partial class Form2
    {


You can of course edit the namespace to be whatever is appropriate in your situation - just make sure you do it the same in both the Form2.cs and Form2.Desgner.cs

My guess with your
angels777 wrote:
form1.cs does not exist

is that the namespace being used to reference form1 from elsewhere is not the same namespace that your form1 resides in.
GeneralHttpRequest object for a Web Reference API Pin
Skippums14-Jan-08 4:05
Skippums14-Jan-08 4:05 
QuestionC# readonly reference (like C++ const reference ) Pin
Zeinpresiyo14-Jan-08 3:26
Zeinpresiyo14-Jan-08 3:26 
GeneralRe: C# readonly reference (like C++ const reference ) Pin
Justin Perez14-Jan-08 3:45
Justin Perez14-Jan-08 3:45 
GeneralRe: C# readonly reference (like C++ const reference ) Pin
PIEBALDconsult14-Jan-08 4:13
mvePIEBALDconsult14-Jan-08 4:13 
GeneralRe: C# readonly reference (like C++ const reference ) Pin
PIEBALDconsult14-Jan-08 4:18
mvePIEBALDconsult14-Jan-08 4:18 
GeneralRe: C# readonly reference (like C++ const reference ) Pin
DavidNohejl14-Jan-08 4:56
DavidNohejl14-Jan-08 4:56 
AnswerRe: C# readonly reference (like C++ const reference ) Pin
Zeinpresiyo14-Jan-08 6:12
Zeinpresiyo14-Jan-08 6:12 
GeneralRe: C# readonly reference (like C++ const reference ) Pin
Pete O'Hanlon14-Jan-08 9:53
mvePete O'Hanlon14-Jan-08 9:53 
GeneralRe: C# readonly reference (like C++ const reference ) Pin
Zeinpresiyo17-Jan-08 0:04
Zeinpresiyo17-Jan-08 0:04 
Questiondeleting a file in use Pin
Ofori Boadu14-Jan-08 3:06
Ofori Boadu14-Jan-08 3:06 
GeneralRe: deleting a file in use Pin
benjymous14-Jan-08 3:13
benjymous14-Jan-08 3:13 
GeneralRe: deleting a file in use Pin
Ofori Boadu14-Jan-08 3:32
Ofori Boadu14-Jan-08 3:32 
GeneralRe: deleting a file in use Pin
S. Senthil Kumar14-Jan-08 3:21
S. Senthil Kumar14-Jan-08 3:21 
GeneralRe: deleting a file in use Pin
Luc Pattyn14-Jan-08 5:48
sitebuilderLuc Pattyn14-Jan-08 5:48 
QuestionSetting BackColor & ForeColor of each Component Pin
Programm3r14-Jan-08 2:43
Programm3r14-Jan-08 2:43 
GeneralRe: Setting BackColor & ForeColor of each Component Pin
benjymous14-Jan-08 2:53
benjymous14-Jan-08 2:53 
QuestionRe: Setting BackColor & ForeColor of each Component Pin
Programm3r14-Jan-08 2:59
Programm3r14-Jan-08 2:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.