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
242 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 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

This article will show, step by step, how to integrate R code into a R Sweave document
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.
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…

749 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