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. Create Object Form

Create Object Form

Scheduled Pinned Locked Moved C#
databasedata-structureshelptutorial
3 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
    hosam Taji
    wrote on last edited by
    #1

    I have project and store the name of this project forms in a database table, the start up form will show the other project form in a tree view and store the description of that forms and its names on mouse double click i want to create instance of a form in the selected node with out knowing the name of that form not hard code also i dont know how to use the system.reflication please can any one help me Hosam Taji

    C 1 Reply Last reply
    0
    • H hosam Taji

      I have project and store the name of this project forms in a database table, the start up form will show the other project form in a tree view and store the description of that forms and its names on mouse double click i want to create instance of a form in the selected node with out knowing the name of that form not hard code also i dont know how to use the system.reflication please can any one help me Hosam Taji

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

      Can I ask why the duplication ? What if a form name changes within the project, the database will be wrong. Why do you need to use reflection at all, if you know the names of all the forms, to store them in a database table ?

      Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "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 )

      H 1 Reply Last reply
      0
      • C Christian Graus

        Can I ask why the duplication ? What if a form name changes within the project, the database will be wrong. Why do you need to use reflection at all, if you know the names of all the forms, to store them in a database table ?

        Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "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 )

        H Offline
        H Offline
        hosam Taji
        wrote on last edited by
        #3

        what if i have more that 1000 forms in my project do i have to write code for each form in its name to call it, also my project is multilengual and the user can change the form descritpion and loacation in the tree throw a spechle forms so that why i use the database !!!! i do all these in other languge like oracle developer and know i am trying to do so in C# windows application to let my team enter the information about the forms in the database and then the startup form will call these forms automatic Hosam Taji

        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