October 23, 2016
Hot Topics:

Beginning Objects in VB - Part 1

  • November 19, 2002
  • By Sam Huggill
  • Send Email »
  • More Articles »

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....

Page 3 of 5

Comment and Contribute


(Maximum characters: 1200). You have characters left.



Enterprise Development Update

Don't miss an article. Subscribe to our newsletter below.

Sitemap | Contact Us

Thanks for your registration, follow us on our social networks to keep up-to-date
Rocket Fuel