Solved

Handle ActiveX properties

Posted on 2001-06-05
5
155 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
MS Access Search and Replace Using VBA 6 85
Automatic Email Reminder 4 58
VB6 - Scroll Mouse wheel on Picturebox 13 79
MS SQL Update query with connected table data 3 41
Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

820 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