Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Namespaces

Namespaces

Scheduled Pinned Locked Moved Visual Basic
csharphelpvisual-studioquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • 2 Offline
    2 Offline
    2hdass
    wrote on last edited by
    #1

    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 and End 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?

    C 1 Reply Last reply
    0
    • 2 2hdass

      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 and End 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?

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      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 )

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups