Solved

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

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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

770 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