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
250 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 52

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

What Is Transaction Monitoring and who needs it?

Synthetic Transaction Monitoring that you need for the day to day, which ensures your business website keeps running optimally, and that there is no downtime to impact your customer experience.

Question has a verified solution.

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

This is an explanation of a simple data model to help parse a JSON feed
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…
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
Introduction to Processes

688 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