请帮忙 [英] Help Please

查看:84
本文介绍了请帮忙的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我想知道是否有人可以给我一个例子,或者给我一些关于如何动态创建基于表格的表格的想法

数据库表?那么,我会有一个

表,旨在告诉我的应用程序创建某些文本框,标签,

和组合框?任何想法都将不胜感激。


谢谢

Hi,

I was wondering if any could point me to an example or give me ideas on how
to dynamically create a form based on a database table? So, I would have a
table designed to tell my application to create certain textboxes, labels,
and combo boxes? Any ideas would be appreciated.

Thanks

推荐答案

对象序列化和反序列化将是值得关注的。

序列化您的表单对象并将其保存为blob,然后当您想要将表单实例设置为

时,加载blob然后反序列化。只是一个

的想法...

Jason <无**** @ hotmail.com>在留言中写道

news:uK ************** @ TK2MSFTNGP11.phx.gbl ...
Object serialization and deserialization would be something to look into.
Serialize your form object and save it as a blob, then when you want to make
an instance of the form, load the blob and then deserialize. Just an
idea...
"Jason" <no****@hotmail.com> wrote in message
news:uK**************@TK2MSFTNGP11.phx.gbl...

我想知道是否有人能指出我的例子,或者给我一些关于
如何基于数据库表动态创建表单的想法?那么,我会有一个
表来告诉我的应用程序创建某些文本框,标签,
和组合框?任何想法都将不胜感激。

谢谢
Hi,

I was wondering if any could point me to an example or give me ideas on how to dynamically create a form based on a database table? So, I would have a
table designed to tell my application to create certain textboxes, labels,
and combo boxes? Any ideas would be appreciated.

Thanks





你好杰森,


我认为您可以在Form的Load事件中处理。

在这种情况下,您可以打开数据库并检索所有信息
来自表格。

然后你可以动态构造控件并正确设置它们的属性。

最后,使用Form.Controls.Add()方法来将它们添加到表格中。


如果您有任何不清楚的地方,请随时告诉我。


祝你好运,

Jeffrey Tan

Microsoft在线合作伙伴支持

安全! - www.microsoft.com/security

此帖子按原样提供没有保证,也没有赋予任何权利。


--------------------

|来自:杰森 < no **** @ hotmail.com>

|主题:帮助请

|日期:2003年10月17日星期五17:30:56 -0600

|行数:10

| X-Priority:3

| X-MSMail-Priority:正常

| X-Newsreader:Microsoft Outlook Express 6.00.2800.1158

| X-MimeOLE:由Microsoft MimeOLE V6.00.2800.1165制作

|消息ID:< uK ************** @ TK2MSFTNGP11.phx.gbl>

|新闻组:microsoft.public.dotnet.languages.csharp

| NNTP-Posting-Host:64.207.45.37

|路径:cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP11.phx.gbl

|外翻:cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.csharp:192242

| X-Tomcat-NG:microsoft.public.dotnet.languages.csharp

|

|

|

|我想知道是否有人可以给我一个例子或给我一些想法

如何

|动态创建基于数据库表的表单?所以,我会有一个

|表旨在告诉我的应用程序创建某些文本框,标签,

|和组合框?任何想法将不胜感激。

|

|谢谢

|

|

|


Hi Jason,

I think you can handle in the Form''s Load event.
In this event, you can open the database and retrieve all the information
from the table.
Then you can dynamic construct controls and set their property correctly.
At last, use Form.Controls.Add() method to add them into the form.

If you have any unclear, please feel free to tell me.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

--------------------
| From: "Jason" <no****@hotmail.com>
| Subject: Help Please
| Date: Fri, 17 Oct 2003 17:30:56 -0600
| Lines: 10
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <uK**************@TK2MSFTNGP11.phx.gbl>
| Newsgroups: microsoft.public.dotnet.languages.csharp
| NNTP-Posting-Host: 64.207.45.37
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP11.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.csharp:192242
| X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
|
| Hi,
|
| I was wondering if any could point me to an example or give me ideas on
how
| to dynamically create a form based on a database table? So, I would have a
| table designed to tell my application to create certain textboxes, labels,
| and combo boxes? Any ideas would be appreciated.
|
| Thanks
|
|
|



你好Jason,


我认为你可以在Form'的Load活动中处理。

在这个活动中,你可以打开数据库并从表中检索所有信息



然后你可以动态构造控件并正确设置它们的属性。

最后,使用Form.Controls.Add()方法将它们添加到表单中。


如果您有任何不清楚的地方,请随时告诉我。


祝你好运,

Jeffrey Tan

微软在线合作伙伴支持

安全! - www.microsoft.com/security

此帖子按原样提供没有保证,也没有赋予任何权利。


--------------------

|来自:杰森 < no **** @ hotmail.com>

|主题:帮助请

|日期:2003年10月17日星期五17:30:56 -0600

|行数:10

| X-Priority:3

| X-MSMail-Priority:正常

| X-Newsreader:Microsoft Outlook Express 6.00.2800.1158

| X-MimeOLE:由Microsoft MimeOLE V6.00.2800.1165制作

|消息ID:< uK ************** @ TK2MSFTNGP11.phx.gbl>

|新闻组:microsoft.public.dotnet.languages.csharp

| NNTP-Posting-Host:64.207.45.37

|路径:cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP11.phx.gbl

|外翻:cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.csharp:192242

| X-Tomcat-NG:microsoft.public.dotnet.languages.csharp

|

|

|

|我想知道是否有人可以给我一个例子或给我一些想法

如何

|动态创建基于数据库表的表单?所以,我会有一个

|表旨在告诉我的应用程序创建某些文本框,标签,

|和组合框?任何想法将不胜感激。

|

|谢谢

|

|

|


Hi Jason,

I think you can handle in the Form''s Load event.
In this event, you can open the database and retrieve all the information
from the table.
Then you can dynamic construct controls and set their property correctly.
At last, use Form.Controls.Add() method to add them into the form.

If you have any unclear, please feel free to tell me.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

--------------------
| From: "Jason" <no****@hotmail.com>
| Subject: Help Please
| Date: Fri, 17 Oct 2003 17:30:56 -0600
| Lines: 10
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <uK**************@TK2MSFTNGP11.phx.gbl>
| Newsgroups: microsoft.public.dotnet.languages.csharp
| NNTP-Posting-Host: 64.207.45.37
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP11.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.csharp:192242
| X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
|
| Hi,
|
| I was wondering if any could point me to an example or give me ideas on
how
| to dynamically create a form based on a database table? So, I would have a
| table designed to tell my application to create certain textboxes, labels,
| and combo boxes? Any ideas would be appreciated.
|
| Thanks
|
|
|


这篇关于请帮忙的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆