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....
文章来源于领测软件测试网 https://www.ltesting.net/
版权所有(C) 2003-2010 TestAge(领测软件测试网)|领测国际科技(北京)有限公司|软件测试工程师培训网 All Rights Reserved
北京市海淀区中关村南大街9号北京理工科技大厦1402室 京ICP备10010545号-5
技术支持和业务联系:info@testage.com.cn 电话:010-51297073