ActiveX Control Tutorial - Part 3, Page 6
This week we added code to make our Super Cool Text Box control work. We then discussed events and how to raise them within your control.
We finished off by checking out the neat ActiveX control wizard and how it can make mundane, error-prone coding a task of the past.
Perhaps we haven't had as much 'hands-on' today as previous weeks but don't worry, you've just about completed your control and learned a lot of important lessons along the way.
And that means you're getting closer to becoming an ActiveX Wizard! And I'm not talking about the Microsoft type.
Hey - Well Done!
Now for a little homework. Bear in mind that you read a property via the Get statement and write to it via the Let statement. What could you do to make a property read-only or write-only? And why would you want to do that?
Incidentally, "Because you suggested it" is not a valid answer.
First chap to post the correct answer on the bulletin board wins a three-year old Mars bar.
Before the next tutorial, it'd also be good practice to play around with events. Try raising your own and then responding to them in code. You can even add extra events to our Super Cool Text Box control, if you wish.
Next week, we'll unravel the mystery of the wizard's weird property code and take a geek peek at Property Bags, which incidentally are nothing to do with shopping bags, leather bags or indeed, baggy bags.
But until then, this is your host Karl Moore signing off for tonight. Goodnight!
Page 6 of 6