Solved

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

Posted on 2013-05-31
2
253 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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
This video discusses moving either the default database or any database to a new volume.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

707 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

20 Experts available now in Live!

Get 1:1 Help Now