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
208 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
Comment Utility
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
Comment Utility
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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Replace a tag with sed 2 41
countHi challenge 25 84
countAbc challenge 9 49
VB6 Compile Compatibility Issue 4 26
Purpose To explain how to place a textual stamp on a PDF document.  This is commonly referred to as an annotation, or possibly a watermark, but a watermark is generally different in that it is somewhat translucent.  Watermark’s may be text or graph…
Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
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 …

743 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

16 Experts available now in Live!

Get 1:1 Help Now