教程中国
PHOTOSHOP CS9.0中文版 MAYA 8.5 FOR WINDOWS Corel Painter v9.0 Flash MX2004 中文版 Illustrator cs2 中文版
VC++6.0含sp6 中英文版 VB6.0 +sp6 简体中文版 Borland Delphi 7汉化版 MSDN for vb6.0中文版 Visual Studio 2005简体
教程中国下属 文件存储共享专家BIBIDU.COM 提供大型软件,教材,源码,电影,音乐,图书等下载 更多精品请点此进入
  您目前所在位置: 教程中国 >> 编程基地 >> VB >> 初识object-对象(object)是什么? RSS订阅
初识object-对象(object)是什么?
教程(视频,书籍)下载:  ASP.NET AutoCAD 数据库 C# ASP java photoshop 网页设计 delphi 3dmax Flash C++ VB 张孝祥 实例   更多请进入BIBIDU搜索
IT搜索引擎   
Introduction

Hi there avid programmers! It注释:s great to see you at the start of a new series of articles on objects and Visual Basic.

Well, lets start with the basics (excuse the pun): I注释:m Sam Huggill and I will be guiding you through the jungle of class modules, ActiveX components, DLLs and much more over the coming weeks. If you ever had any doubts about objects, read on!

In this first part, I will be covering the following things:

- What注释:s an object?
- Where can I pick up an object?
- Why should I use objects?
- My first object!

OK - Now that we are clear about what I注释:m supposed to be doing, we better proceed! But just before we do, I want to remind you that I want to hear what you think about this tutorial. Boring, interesting, too much or too little? Let me know by clicking on the Post Feedback Now link at the bottom of each page of this tutorial.

Right, on with the learning!

What注释:s an object?

Is it a bird? Is it a plane? No, it注释:s an object! (Sorry for those of you who never watched superman :)

Objects are things that you can program with, things that make programming easier. They contain a set of methods and properties that allow you to make the object do certain things without actually having to look at the objects code. For example, you have probably used the following statement many times:

Text1.Text = ""
Remeber that? Well, what you are doing is setting the property Text, of the text box object Text1 to equal nothing.

See, objects are really easy, you注释:ve been using them ever since that first "Hello World!" program you wrote!

In fact, all the controls you see on your VB toolbox are all objects. For a better look at objects, either press F2 or click View, Object Browser. This nifty little window allows you to see all the properties and methods of the objects currently loaded.

If you click on the combo box that currently contains , and select VB, you will see a list (on the left) of all the standard controls in your toolbox.

Just try clicking on TextBox. See, recognise some of those methods and properties? (I sure hope so :)



Here注释:s what we注释:ve done so far:

- Example of the Textbox object
- Realised how simple objects can be (yes, you have really :)
- Taken a look inside the object browser

Right, lets find out where you get other objects from >>

来源:upschool.cn
作者:
关键字:初识object,object,什么
发表日期:2006-12-20 18:15:04

网页显示有限 阅读全文请下载本文完整版WORD文档

上一篇:初识object-如何获得object?   下一篇:设置打印机页边距


2009-1-10 10:23:04
本文的相类似文章
  • 内幕!DC维修为什么这么贵?
  • 细问细答 LCD“十万个为什么”
  • 你知道什么是38度机箱吗?
  • 未来的笔记本硬盘是什么样的
  • 未来的笔记本硬盘是什么样的
  • 品牌机究竟贵在什么地方?
  • 如果天下无贼,什么东西会没有用?
  • 主题数据库的特征是什么?
  • Oracle初学者入门指南-索引是干什么用的?
  • 索引什么时候不工作
  • 在学习中进步 在进步中成长 教程中国相随您的成长之路
    华腾联合科技股份有限公司版权所有
    广告联系:Rosibo@163.com