Dynamic Forms

This is a discussion on Dynamic Forms within the C# Programming forums, part of the General Programming Boards category; I need to create a form where the buttons and functions of those buttons are populated by a table in ...

  1. #1
    Registered User
    Join Date
    Jun 2015
    Posts
    2

    Dynamic Forms

    I need to create a form where the buttons and functions of those buttons are populated by a table in a database. As my boss makes his expectations ore clear, I will add to this. Also, this is my first time being the lead programmer on a project, so wish me luck.

  2. #2
    Registered User
    Join Date
    Oct 2006
    Posts
    2,816
    assuming the functions already exist in the code, you can look them up by name, using reflection. You can then easily create buttons programmatically, and add them to your form, hooking them up to event handlers you got from the database.
    Code:
    namespace life
    {
        const bool change = true;
    }

  3. #3
    Registered User
    Join Date
    Jun 2015
    Posts
    2
    Thank you, this helps. Honestly, I haven't been programming very long and am not ready to be a lead IMO. But I got our last program up and running after the person before me spent over a year trying to do so. Until last December, I had never written in C#. I am still learning the little things about the language.

  4. #4
    Gawking at stupidity
    Join Date
    Jul 2004
    Location
    Oregon, USA
    Posts
    3,190
    Which part of this do you not know how to do? Retrieve information from a database? Dynamically add form elements?
    If you understand what you're doing, you're not learning anything.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. GUI and forms
    By gilit2 in forum C++ Programming
    Replies: 7
    Last Post: 02-05-2011, 11:55 PM
  2. C# Forms
    By Xarzu Athanasop in forum C# Programming
    Replies: 2
    Last Post: 01-16-2008, 10:57 AM
  3. Forms
    By gvector1 in forum C# Programming
    Replies: 2
    Last Post: 11-11-2003, 07:43 AM
  4. forms!!!???
    By SuperNewbie in forum C# Programming
    Replies: 6
    Last Post: 08-05-2002, 11:52 PM
  5. Forms
    By Unregistered in forum C# Programming
    Replies: 2
    Last Post: 05-05-2002, 09:17 AM

Tags for this Thread


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21