You are here:

VB.NET/How Can I save a form that dynamically as formname.vb

Advertisement


Question
i want to develop an application that allows user to design his/ her own screens.

For this, I am following this procedure

I created a tool box with some tools (label, button, textboxes, line etc..)
i have a new form (this form has to save with a name and with an extension .vb), And can add some controls to the form using tools in my tool box.
And i am adding some event handler to these controls.
Now i want to save the form with controls on it. (same as we create a form and add controls to it manually using visual studio)
Now my question is, can i do this using vb.net or not, if yes, how?. Please help me i am stuck at this for no. of weeks,

Thankyou

Answer
Why do you want to generate .vb forms? why not save your form data as XML instead and load it in your designer.

Moreover you can use Codedom to achieve this. More information can be found here: http://msdn.microsoft.com/en-us/library/650ax5cx(v=vs.110).aspx  

VB.NET

All Answers


Answers by Expert:


Ask Experts

Volunteer


Syed Rizwan Muhammad Rizvi

Expertise

I can answers questions regarding web based and desktop based programming in VB.Net. Which can include SOAP, XML, Custom Controls, COM Interoperability etc.

Experience

Have been working in this specific area for last 2 years previously I was a VB 6 Developer with experties in other languages as well. Total 10 years of programming experience.

©2016 About.com. All rights reserved.