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. C#
  4. Project of component at design time

Project of component at design time

Scheduled Pinned Locked Moved C#
questiondesigntutorial
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.
  • H Offline
    H Offline
    Hans Ruck
    wrote on last edited by
    #1

    Do you know how can I get the corresponding project of a custom component at design time? For example: a custom list box resides in a form which belongs to a project. I need to access that project, from inside of the listbox, at design time. Thank you.

    Bogdan.

    C 1 Reply Last reply
    0
    • H Hans Ruck

      Do you know how can I get the corresponding project of a custom component at design time? For example: a custom list box resides in a form which belongs to a project. I need to access that project, from inside of the listbox, at design time. Thank you.

      Bogdan.

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

      What do you mean, 'access the project' ? The csproj file is not there, nor can you change it's settings in the compiled dll. If you want the name of the project, if it happens to be the name of the main namespace, as is the default, you can get the name via reflection, but, given that it never changes, I assume this is not what you mean ( plus, I can't think of any reason to want to do this )

      Christian Graus Driven to the arms of OSX by Vista. "! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums. I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp

      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