Solved

Create VB forms using XML, i.e. Use XML to create a VB form that contains Labels, textfields, comboboxes etc

Posted on 2003-10-23
3
219 Views
Last Modified: 2010-04-17
I want to use XML to generate a VB Form. i.e. A generated Xml file  containing Form components i.e. labels, textfields, position etc from a create template dialog will create and display the Form with the contents in the Xml file.

After the user has entered values in the components and clicks Ok, the values will be stored in the XML file under its components.
0
Comment
Question by:vishalchavda
3 Comments
 
LVL 49

Assisted Solution

by:Ryan Chong
Ryan Chong earned 40 total points
ID: 9606144
Basically, first comment is It's not worth to use XML to generate a VB Form, as you may think back different controls may got different codes to be executed. Despite you can create controls on it, but you cant/hard to duplicate the codes to the XML file.

If you really want to try it, it's ok, but personally think it's not efficient, and time consuming.

regards
0
 

Accepted Solution

by:
pwappdev earned 85 total points
ID: 9609893
Hey vishalchavda,

I would have to agree with one of the other postings, in that I thing the time an energy is not worth the return.  However, I will attempt to offer some thoughts.

First, you didn't mention if you're using VB6 or .net, but at any rate, check out the below URL that was published on msdn on how to make VB6 classes into XML wrappers.  The source is available, as well.

Additionally, the source files for VB forms in both versions are text files, so if you want to take the time you could parse the files, converting them to an XML output instance, etc., but that sounds like a lot of work.

I think a better solution might be to look at some of the code/forms generating products, like IronWorks or CodeGen, which use a db schema to create forms, etc. and then you could use the build-in XML features of MS SQL and .NET for storage, etc..

Hope this helps.

Best wishes,

pwappdev

'- URL mentioned above:
http://msdn.microsoft.com/msdnmag/issues/01/01/XMLWrap/default.aspx

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

Suggested Solutions

Title # Comments Views Activity
java  and programming certification ? 4 86
Currency Conversion? 1 71
Not needed 13 93
Java Loop 6 48
RIA (Rich Internet Application) tools are interactive internet applications which have many of the characteristics of desktop applications. The RIA tools typically deliver output either by the way of a site-specific browser or via browser plug-in. T…
This is about my first experience with programming Arduino.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

919 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

19 Experts available now in Live!

Get 1:1 Help Now