QUOTE(rqmurad @ 30 Apr, 2009 - 01:21 AM)

i am doing widows programming in c#
i wrote all my code in a different codefile named baseclass.cs
the form1 has its own codefile form1.cs
i cannot access any member of baseclass.cs codefile
if there is a button on form1, how i can run a function of baseclass.cs codefile with buttonclik?
how i can view a value on form 1
Simple issue of class visibility. The default access modifier of a C# class is private. Your class "baseclass" is therefore private as it is not declared for public, protected, or internal access.
Since baseclass does not contain any state and appears to be only a container for other public classes, I would suggest you use a namespace to contain the other classes rather than a class. If you have another reason to make this a class, then I would suggest changing the declaration to either
CODE
public class baseclass
//OR
internal class baseclass
public classes are visibile to all code, outside and inside of the assembly (i.e. project).
internal classes are visible to any code within the assembly.
protected classes are visible only to other classes which inherit from their container class and cannot be directly declared in a namespace.
protected internal classes are visible to the current assembly and to any classes which inherit from their container class. They also cannot be directly delcared in a namespace.
Hope it helps