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
236 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 51

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

This is an explanation of a simple data model to help parse a JSON feed
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
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 …

829 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