VBGood网站全文搜索 Google

搜索VBGood全站网页(全文搜索)
首页 - 经验之谈 - 初识object-如何获得object?
发表评论(0)作者:不详, 平台:VB6.0+Win98, 阅读:7896, 日期:2001-05-08
Where can I pick up objects?

You注释:ve probably got loads on your desk, but don注释:t bother looking if your filing system is anything like mine!

You can actually make your own objects in VB (as we注释:ll discuss in a min), but for the moment you can load some of the more complex objects that come with VB. Here are a few simple steps to get you started:

- Open up VB, and select Standard EXE.
- Click Project, Components.
- Scroll down and select Microsoft RichTextBox Control 6.0 (or 5.0 if you注释:re running VB5)

Your should have some thing that looks like this:



Righty ho, now click OK. The RichTextBox icon should be on your toolbox:



Go back to the object browser (F2 in case you forgot) and click on that combo box thingy again and select RichTextLib. Uhhh? What注释:s all those things down the left hand side? This looks a bit more complicated then the Textbox.

Well, don注释:t fret! I注释:m here to guide you through the murky depths of the RichTextBox control (Ooops, this isn注释:t Shakespeare in VB).

Where were we? Oh yeah, scroll down and select RichTextBox (it has a little icon that looks like some Bassets AllSorts - ok, so it doesn注释:t then :)

If you take a look on the right hand pane, then you will see a load of cool methods and properties. (If you have ever used this control before, then you will recognise some of them.)

So, there you have an easy way to find out about objects. But, (I here you cry), why should I use them? Lets find out....