Solved

VB.net Dynamic Windows Form that adapts to SQL Table changes

Posted on 2013-05-31
2
254 Views
Last Modified: 2013-06-01
Hi

I would like to try to build a dynamic Windows form that loads controls for any
SQL table and adapts to changes made to the tables. Has anyone ever tried or asked this sort
of question before?
0
Comment
Question by:murbro
2 Comments
 
LVL 13

Accepted Solution

by:
Alexander Eßer [Alex140181] earned 500 total points
ID: 39210083
What kind of controls?! I guess some sort of grid for the tables, right?! What exactly do you mean with
adapts to changes made to the tables

Basically, this shouldn't be too difficult at all.
My "mind list" would be something like this:
- first get all relevant SQL tables by iterating over the "system tables" to get the info
- then take the components of your choice (e.g. datasetzs or whatever) and dynamically add them to your main window (e.g. through reflection if neccessary/suitable)
- using data binding on e.g. DataChanged (-> DataSource) and your window forms/controls should keep the data up to date
0
 

Author Closing Comment

by:murbro
ID: 39212522
Thanks for the advice
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

28 Experts available now in Live!

Get 1:1 Help Now