Namespaces
-
I am kinda new to vb.net so please advice me I am writing an app at which i want to organize my controls in to namespaces So i write a user contrl class and i placed it in a folder called plugin When i warp with
NameSpace xxx.Plugin
andEnd NameSpace
and i switch to desinger view i get this error: The class Clock can be designed, but is not the first class in the file. Visual Studio requires that designers use the first class in the file. Move the class code so that it is the first class in the file and try loading the designer again. Please help? -
I am kinda new to vb.net so please advice me I am writing an app at which i want to organize my controls in to namespaces So i write a user contrl class and i placed it in a folder called plugin When i warp with
NameSpace xxx.Plugin
andEnd NameSpace
and i switch to desinger view i get this error: The class Clock can be designed, but is not the first class in the file. Visual Studio requires that designers use the first class in the file. Move the class code so that it is the first class in the file and try loading the designer again. Please help?2hdass wrote:
so please advice me
Sure. Firstly, please delete your duplicate post. I suspect your issue is that the IDE generates two code files ( and I thought generated namespaces based on folders ), so you probably need to change/create the namespace in both files. This is assuming this is a winforms app.
Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )