BrainDump
  Home arrow BrainDump arrow Page 3 - Making Your First Active X Control in Visu...
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Silverlight  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
ASP Web Hosting  
ASP.NET Web Hosting 
Windows Web Hosting
 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
BRAINDUMP

Making Your First Active X Control in Visual Basic
By: Katie Gatto
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 7
    2008-07-09

    Table of Contents:
  • Making Your First Active X Control in Visual Basic
  • Steps 1-4
  • Steps 5-8
  • Steps 9-11

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Making Your First Active X Control in Visual Basic - Steps 5-8


    (Page 3 of 4 )


    Step Five: Get the elements in place

    On the left there is a list of possible items that you can use to make your control. In this case we are going to use two of the standard elements to make our spinner box. First select a text box from the options. Draw a small text box onto your workspace. Small is a critical aspect here; your text box only needs to be big enough to hold a number, so keep your sense of scale here.

    Next, find the vertical scroll bar next to the text box. Remember, when we are finished with this, it will be one element, so these items need to be touching in order for the end product to look right.

    Step Six: Merge the Controls

    Use the control sizing handle to draw a box around both the text box and the vertical scroll box. This will allow us to make rules that will apply to both of the items, so be sure that the box encompasses both of the elements that we just added.

    Step Seven: Display the code window

    The code window will allow us to write the event driven code that will give the scroll bar its functionality. To do this all you have to do is double click on the vertical scroll bar. The code window will open automatically.

    Step Eight: Add the code

    In order to make the box functions work we need to add this line of code:

    "text1.text=vscroll1.value"


    This line of code makes the assumption that you kept the default names of the objects that you added to the program. If you made changes to names, then these lines of code will be slightly different. For example, if you re-named the text box texty1 then your text would read like this:

    "texty1.text=scrolly1.value"

    More BrainDump Articles
    More By Katie Gatto


       · I've read a lot of these posts and these tutorials this one was really great!
     

    BRAINDUMP ARTICLES

    - Introduction to Office Live Workspace
    - Using MS Excel for One-way Analysis of Varia...
    - Comparing Data Sets Using Statistical Analys...
    - Import Blogger Posts into WordPress Using Wi...
    - Download WordPress from an FTP Server and Ru...
    - Install and Run WordPress in XAMPP Local Host
    - What Windows 7 Brings to the Table
    - Virtualization and Sandbox Detection
    - Advanced Firebug Techniques in Windows XP Ho...
    - Editing CSS with Firebug in Windows XP Home
    - Using Firebug in Windows XP Home
    - Migrating to Exchange Server 2007
    - Using System Restore on a Non-Bootable PC
    - Finding Logged on Users and More Scripting S...
    - Developing Macro Commands in MS Excel





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 6 Hosted by Hostway
    Stay green...Green IT