what's Windows Forms?????

aspbasicer 2001-07-27 01:08:53
Windows Forms is the new platform for Microsoft Windows application development, based on the .NET Framework. This framework provides a clear, object-oriented, extensible set of classes that enable you to develop rich Windows applications. Additionally, Windows Forms can act as the local user interface in a multi-tier distributed solution.

What is a Form?
A form is a bit of screen real estate, usually rectangular, that you can use to present information to the user and to accept input from the user. Forms can be standard windows, multiple document interface (MDI) windows, dialog boxes, or display surfaces for graphical routines. The easiest way to define the user interface for a form is to place controls on its surface. Forms are objects that expose properties which define their appearance, methods which define their behavior, and events which define their interaction with the user. By setting the properties of the form and writing code to respond to its events, you customize the object to meet the requirements of your application.

As with all objects in the .NET Framework, forms are instances of classes. The framework also allows you to inherit from existing forms to add functionality or modify existing behavior. When you add a form , you can choose whether it inherits from the Form class provided by the framework, or from a form you've previously created.

The form is the primary vehicle for user interaction. By combining different sets of controls and writing code, you can elicit information from the user and respond to it, work with existing stores of data, and query and write back to the file system and registry on the user's local computer.
...全文
88 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
Only_I 2001-09-29
  • 打赏
  • 举报
回复
up
ketao_78 2001-09-29
  • 打赏
  • 举报
回复
好啊
wilddragon 2001-09-24
  • 打赏
  • 举报
回复
好睡了
wilddragon 2001-09-24
  • 打赏
  • 举报
回复
哈哈
wilddragon 2001-09-21
  • 打赏
  • 举报
回复
gz
acptvc 2001-09-06
  • 打赏
  • 举报
回复
感谢您使用微软产品。

介绍Windows表单
Windows表单是一个新的表单包,它使得开发者在开发基于Windows的应用程序时,可以充分利用操作系统提供的丰富的用户界面。Windows表单是新的Microsoft .NET Framework的一部分,并且采用了许多新技术,包括统一的应用程序框架、可以控制的执行环境、完备的安全机制和面向对象的设计思想。另外,Windows表单还为使用XML Web服务和开发丰富的基于ADO .NET数据模型的应用程序提供了强大的支持。在Visual Studio中新的共享开发环境下,开发者可以使用任何一种支持.NET平台的语言(包括Microsoft Visual Basic和C#),来创建Windows表单应用程序.

创建一个Windows表单应用程序
开发者们可以像他们现在创建基于Visual Basic的表单一样来创建Windows表单应用程序(尽管使用了Windows表单后,他们使用Visual Studio中的任何一种语言开发都可以得到同一级别的生产力,而不仅仅是Visual Basic)。如果开发者想编辑源代码,只要双击控件,代码编辑器就会自动打开,使开发者可以很快捷地访问控件和表单的所有事件模式。

可视化继承
可视化继承是Windows表单提供的一个关键特点,它增强了开发者的生产力,促进了代码的重用。比如,一个组织可以定义一个包含了组织的图标和通用工具栏的标准的基本表单。开发者可以通过继承来使用这个表单,并加以扩展,以满足的特定的应用程序的要求。同时,又促进了组织内部应用程序的界面统一。基本表单的创建者可以限定哪些元素可以被扩展,哪些元素必须保持不变,这样就能保证表单可以被恰当地重用。

精确的表单设计
在设计Windows表单程序的外观时,开发者们可以拥有更完全的控制和更高的生产力。菜单编辑器、控件锚定(Control Anchoring)、控件停靠(Control Docking)以及更多的新控件使得开发者可以开发出丰富的基于Windows表单的用户界面。

强大的图形显示功能
Windows表单应用程序充分利用了GDI+的优点,它提供更多的图像控制,其中包括支持更多的图片格式。开发者可以很容易的使用用于高端图形处理的功能,比如alpha颜色混合、控制边缘毛刺、在响应OnPaint事件时使用双缓冲和Windows 2000支持的透明的多层窗口。有了这些功能,开发者可以创建更丰富、更复杂图形的应用程序,以满足客户的要求。

更低的总体拥有成本
Windows表单不仅为创建丰富的基于Windows应用程序提供了方法。开发者还能从较低的总体拥有成本和完整的应用程序安全模型中获益匪浅。Windows表单充分利用了Microsoft .NET的版本控制和程序发布的特点,降低了总体拥有成本,提高了应用程序的健壮性。 这大大降低了应用Windows表单的应用程序的维护成本(总体拥有成本)。
我们不需要将一个基于Windows表单的应用程序配置到最终用户的桌面上。用户只要在浏览器中输入URL就可以调用这个应用程序了。它将被下载到客户端的机器中,运行在一个安全的运行环境中,并在结束后把自己删除。

对于那些想在物理上把一个应用程序配置到桌面的组织来说,没有必要使用耗费资源资源的安装过程。只要把应用程序复制到桌面,它就可以运行了。Windows表单使我们可以根据业务的需要,以恰当的方式供最终用户使用应用程序

结论
Windows表单为开发者开发基于Windows的应用程序提供了一系列丰富的技术。它不仅包括了一些新的控件及特性,而且还向我们提供了配置灵活和完整安全的特性。使用Windows表单后,Windows应用程序开发者的工作效率必将大幅度的提高。


微软亚洲技术中心 VC技术支持


本贴子仅供CSDN的用户作为参考信息使用。其内容不具备任何法律保障。您需要考虑到并承担使用此信息可能带来的风险。具体事项可参见使用条款 (http://www.csdn.net/microsoft/terms.shtm)。
Amoon 2001-09-01
  • 打赏
  • 举报
回复
哦!头大了~~~~!
qqroom 2001-08-11
  • 打赏
  • 举报
回复
up
n6002 2001-07-27
  • 打赏
  • 举报
回复
哦!

1,978

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 其他语言讨论
社区管理员
  • 其他语言社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧