Wrox Programmer Forums
|
Pro VB 6 For advanced Visual Basic coders working in version 6 (not .NET). Beginning-level questions will be redirected to other forums, including Beginning VB 6.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro 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 July 18th, 2003, 08:33 AM
Authorized User
 
Join Date: Jul 2003
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default Usercontrol Properties

Using a combobox as an example, it has the List property.
Does anyone know how to implement that same property interface but for a custom control?

Thanks in advance.
 
Old July 18th, 2003, 09:54 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post
Default

You just provide a Public Property Let and a Public Property Get for the property in your control. Have you looked at the add-in "ActiveX Control Interface Wizard"? It can do this for you.
 
Old July 18th, 2003, 10:00 AM
Authorized User
 
Join Date: Jul 2003
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Creating the property isnt a problem.
Im after the functionality of the dropdown list within the properties window of IDE.

I have tried to use the wizard, matching properties to an existing combobox but dont get the same result.
 
Old July 18th, 2003, 10:27 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 231
Thanks: 0
Thanked 0 Times in 0 Posts
Default

It looks like you can not create a property for a user control that works in the same way as the Combo Boxes List property, however you could emulate it by creating a Property Page for your control. I know it is not a solution to your problem, however it is a workaround.

Regards
Owain Williams





Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem in accessing the UserControl properties anujrathi ASP.NET 1.0 and 1.1 Professional 1 June 8th, 2006 02:13 PM
how to make usercontrol touyakira Visual C++ 2005 0 May 17th, 2006 10:13 PM
Usercontrol properties. chakravarthy_vb General .NET 1 March 31st, 2005 02:39 AM
Intellisense for UserControl RNedel ASP.NET 1.0 and 1.1 Basics 6 June 15th, 2004 04:47 AM





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