Click here to Skip to main content
15,914,820 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi all!, I am srinivas, here i want to develop an application that allows user to design his/ her own screens.

For this, I am following this procedure

1. I created a tool box with some tools (label, button, textboxes, line etc..)
2. 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.
3. And i am adding some event handler to these controls.
4. 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,

I don't know whether i clearly explained what my problem was, if any one cant understand please let me know by commenting on this, or on my email ID : srinivas.0386@gmail.com

Thankyou
Posted
Comments
Sergey Alexandrovich Kryukov 20-Jan-14 0:36am    
The question does not make any sense without seeing our code. It all depends on how you designed it. The problem is not clear. You can always generate some code based on data, why not?
—SA

You could serialize the controls of the form. This Code Project article (I know it is C#) could point you in the right direction: "Saving the state (serializing) a Windows Form"[^].
 
Share this answer
 
Comments
SrinivasEng 21-Jan-14 1:03am    
@CPallini:
Yeah, I tried Serialization also, i could do the serialize the properties of the controls.
But couldn't do the serialization for event handling for the particular controls
CPallini 21-Jan-14 3:20am    
I think you could serialize even code. However, interacting with CodeDom is, to my knowledge, fairly complex.
SrinivasEng 23-Jan-14 23:17pm    
When I try to serialize, it is saving the properties of controls like name, text, location, size.
But i don't know to how to serialize the code, can you help me on this.
Hai
first u create a dummy form,tool box for controls,main Save button,Clear button on main form,in that allow to drag and drop controls,after finish design ,if user click save button based on user id u have to save location,size of controls in database(i.e. x axis ,y axis ,size)for this u have to limit controls so only can handle this.after user saved his/her design,if user login,based on user id u have retrieve details of controls and load in dummy forms.like this u do.




Regards
AravindB
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900