如何在C#的运行时创建表单 [英] How to create form at run time in C#

查看:105
本文介绍了如何在C#的运行时创建表单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
祝大家圣诞节快乐.

我想在运行时创建表单并显示数据库表中的结构.例如,
以名为"tblemployee"的表名称为例.我想在运行时以表格形式显示此表结构.

有人可以帮助我吗.urgent

Hi guys,
Happy christmas to all.

i want to create the form at run time and display the structures from database table.for eg.
take the table name called "tblemployee".i want to display this table structure in the form at runtime.

can anybody help me please.urgent

推荐答案

您可以使用DataGridView在Windows Forms应用程序中显示表数据.
You can use a DataGridView to display table data in a Windows Forms application.


写道:​​

有人可以帮助我吗.紧急

can anybody help me please.urgent



如果这么紧急,为什么不买书并自己学习C#?

您没有说它是Web表单还是Windows表单,但是gridview可以指向任何数据源,并自动显示其中的所有数据.当然,我无法想象这种通用形式有什么用处,或者它有多紧急.



If it''s so urgent, why don''t you just buy a book and learn C# for yourself ?

You don''t say if it''s a web form or a windows form, but the gridview can be pointed to any data source, and shows all the data in it automatically. Of course, I can''t imagine what use such a generic form would be, or how it could be urgent.


这篇关于如何在C#的运行时创建表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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