Making Your First Active X Control in Visual Basic - Steps 9-11
(Page 4 of 4 )
Step Nine: Close Up
Close the code window, and the control form for the spinner. You can do this with the close box on the left hand side of these windows.
Step Ten: Draw the control onto the application
To do this, simply click on the tool box and then on your newly-minted control. Draw the control onto your main application.
Step Eleven: Test your application
Hit the "F5" key to test the application. Go ahead, give it a whirl; click on the up arrow, or the down as much as you want to, when you do this the number inside the box should go up and down when you click on the corresponding arrows.
There, now you've done it! Take a few seconds to congratulate yourself on learning a new skill. Go get a celebratory drink (non-alcoholic if you happen to be under age, at work or plan to drive later today) or send off a bragging email to one of your friends. Enjoy your new enhancement to your programming skill set; just be sure not to get an inflated ego until you have a few more under your belt.
One final note: this tutorial was made for Visual Basic 5.0; if you have a different version your controls and menus may have some slight differences and you will have to account for that. If you have a problem finding something you can always use the help menu to find it.
| DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware. |