Wrox Programmer Forums
|
Beginning VB 6 For coders who are new to Visual Basic, working in VB version 6 (not .NET).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 21st, 2007, 03:10 PM
Registered User
 
Join Date: Jan 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Including activex

Hi,
I have created an user control. But how can i place the control in a form?

Ashish

 
Old January 21st, 2007, 04:19 PM
Friend of Wrox
 
Join Date: May 2006
Posts: 643
Thanks: 0
Thanked 0 Times in 0 Posts
Default

If the code for the user control is in the same project as the form you should see a little icon in the tool box that you can drag and drop onto the form.

Woody Z
http://www.learntoprogramnow.com
 
Old January 22nd, 2007, 01:44 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 627
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Project->Components... (or press Ctrl+T), locate you UserControl in the list and add it to your project. at this point you should see its icon in the toolbox


"There are two ways to write error-free programs. Only the third one works."
Unknown
 
Old January 22nd, 2007, 05:19 PM
Friend of Wrox
 
Join Date: May 2006
Posts: 643
Thanks: 0
Thanked 0 Times in 0 Posts
Default

If the user control code is part of the same application as the forms that it will be used on then it is automatically added to the toolbox of the project without using the Project->Components dialog to add it.

Woody Z
http://www.learntoprogramnow.com
 
Old January 23rd, 2007, 08:07 AM
Registered User
 
Join Date: Jan 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

got it!! thanks.






Similar Threads
Thread Thread Starter Forum Replies Last Post
ActiveX : getting PARAM value in activeX src smaraux Visual Studio 2005 1 March 4th, 2008 12:31 PM
Including some records and excluding others RussLewis XSLT 2 March 3rd, 2008 12:36 PM
Including Other Project notrosh Visual C++ 1 April 23rd, 2007 12:09 AM
Advantages /Disadvantages of ActiveX DLL & ActiveX priyank Beginning VB 6 6 February 19th, 2007 11:34 AM
Including an .ocx dartcoach VB How-To 9 November 13th, 2006 01:37 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.