Solved

Handle ActiveX properties

Posted on 2001-06-05
5
152 Views
Last Modified: 2010-05-02
Hi

I'm creating UserControl with TreeView control on it.
Can I handle TreeView properties (invoke properties dialog box) at design time like i do it with common TreeView?

p.s. TreeView is stretched on whole UserControl area, so user haven't to see any diferences working with it.
0
Comment
Question by:vterekh
5 Comments
 
LVL 14

Expert Comment

by:puranik_p
ID: 6155732
There is one ActiveX control Interface wizard.
It will do everything you want to do for you.
which includes mapping tree view - properties to the control.
Try it!
0
 
LVL 1

Author Comment

by:vterekh
ID: 6155745
Yes
I can add some methods and properties to user control that way. But can I invoke TreeView property sheet by right click on the user control at design time and choose Property item in the popup menu?
0
 
LVL 15

Accepted Solution

by:
ameba earned 50 total points
ID: 6156135
This is not impossible with some hacking, but I would suggest using 'multicasting' technique:

Your control user adds Treeview to his form, and you declare it by 'withevents' statement.
Then both you and your control user can modify Treeview control and handle its events.

Simple sample: http://www.thescarms.com/vbasic/SubClassTxt.asp
(instead of creating new usercontrol for 'BetterTextBox', it uses a simple class to add functionality)
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7132892
Hi vterekh,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will suggest to:

    Accept ameba's comment(s) as an answer.

vterekh, if you think your question was not answered at all or if you need help, you can simply post a new comment here.  Community Support moderators will follow up.

EXPERTS: If you disagree with my recommendation, please post an explanatory comment.
==========
DanRollins -- EE database cleanup volunteer
0
 
LVL 1

Expert Comment

by:Computer101
ID: 7167836
Comment from expert accepted as answer

Computer101
E-E Moderator
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Is an IP address in a Range 22 72
SSRS expression Issue finding a string 10 51
Using "ScreenUpdating" 6 45
using web browser with BING 40 89
There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now