如何以form1.vb动态保存表单 [英] How Can I save a form that dynamically as form1.vb
问题描述
大家好!我是srinivas,在这里我想开发一个允许用户设计他/她自己的屏幕的应用程序。
为此,我是按照这个程序
1.我创建了一个带有一些工具的工具箱(标签,按钮,文本框,线等)。
2我有一个新表单(此表单必须保存名称和扩展名.vb),
并且可以使用工具箱中的工具为表单添加一些控件。
3.我正在为这些控件添加一些事件处理程序。
4.现在我想保存带有控件的表单。 (同样我们创建一个表单并添加控件
手动使用visual studio)
现在我的问题是,我能否使用vb.net这样做,如果是的话,如何?
请帮助我,我坚持这个没有。几个星期,
我不知道我是否清楚地解释了我的问题是什么,如果有任何人不能理解请通过对此评论或在我身上告诉我电子邮件ID:srinivas.0386@gmail.com
谢谢你
你可以序列化表单的控件。这个代码项目
文章(我知道它是C#
)可能会指向正确的方向:保存状态(序列化)Windows窗体 [ ^ ]。
Hai
首先你创建一个虚拟表单,控件工具箱,主保存按钮,主窗体上的清除按钮,允许拖放控件,完成后设计,如果用户点击基于用户ID的保存按钮你必须保存位置,数据库中控件的大小(即x轴,y轴,大小)为此你必须限制控件所以只能处理这个。用户保存他/后她的设计,如果用户登录,根据用户ID你已经检索控件的细节并以虚拟形式加载。就像你这样做。
问候
Arav INDB
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
You could serialize the controls of the form. ThisCode Project
article (I know it isC#
) could point you in the right direction: "Saving the state (serializing) a Windows Form"[^].
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
这篇关于如何以form1.vb动态保存表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!