developer.com
Search EarthWeb
CodeGuru | Gamelan | Jars | Wireless | Discussions
Navigate developer.com
Architecture & Design  
Database  
Java
Languages & Tools
Microsoft & .NET
Open Source  
Project Management  
Security  
Techniques  
Voice  
Web Services  
Wireless/Mobile
XML  
New
 
Technology Jobs  

   Developer.com Webcasts:
  The Impact of Coding Standards and Code Reviews

  Project Management for the Developer

  Defining Your Own Software Development Methodology

  more Webcasts...




Vote for the Developer.com Product of the Year Winners!




Developer Jobs

Be a Commerce Partner














 


Developer News -
Are We Ready for the Cloud?    November 7, 2008
Windows 7 Drivers to Get a Makeover    November 6, 2008
Sun Serves Up Some Java EE 6 in GlassFish    November 6, 2008
Devs Dish Some iPhone App Tips    November 5, 2008
Free Tech Newsletter -

ActiveX Control Tutorial - Part 1
By Karl Moore

Go to page: Prev  1  2  3  4  5  6  Next  

Let's see what all that hard work has given us.

  • Click File, Add Project
  • Select 'Standard EXE' and click Open

Now we have two different projects open at the same time; our control and this new Standard EXE thing we've just created.

Let's add our new control to the Standard EXE now.

  • Drag out the Flasher control () on your toolbar onto Form1, like this:

Top Tip: If your Flasher control is greyed-out... it means your copy of Visual Basic has been attacked by huge killer bees from the terrifying jungles of Outer Mongolia or you haven't closed the workspace of your control. Hmm, probably the latter actually. Close the workspace and try again!

See how your Option Button appears?

Look in the Properties window. Can you see all the Properties your control already has? A Name property, TabIndex, ToolTipText... and more! These are all assigned by default.

Now...

  • Add a Command Button to the form
  • Place the following code behind it:
    Flasher1.Flash

The method you've just tapped in is the one we coded!

When we added the 'Public Sub Flash' code, it's automatically turned into one heckuva groovy method!

Try hitting F5 and running your application. Now hit the Command Button! See what happens?

The Option Button should flash for a few seconds... great for highlighting a warning of some sort. But not so great at anything else.

Go to page: Prev  1  2  3  4  5  6  Next  

Next article: ActiveX Control Tutorial - Part 2


Tools:
Add www.developer.com to your favorites
Add www.developer.com to your browser search box
IE 7 | Firefox 2.0 | Firefox 1.5.x
Receive news via our XML/RSS feed


Visual Basic Archives






internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info

Legal Notices, Licensing, Reprints, Permissions, Privacy Policy.
Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers