Solved

Exposing the tooltiptext property of UserControls

Posted on 1998-11-29
1
204 Views
Last Modified: 2010-07-27
Anybody know how to expose the (TTT) property of a usercontrol?  No matter whether the control is a simple command button, or an amalgamation of several
controls, I can *never* get the (TTT) to work properly.  It appears in the property list, and retains its value, but it only appears when I hover over part of the UC not covered by a constitutent control -- what do I need to do ?
0
Comment
Question by:mpgalvin
1 Comment
 
LVL 15

Accepted Solution

by:
ameba earned 100 total points
ID: 1447275
' you must also set ToolTipText prop of your controls you placed on your usercontrol
Public Property Let tt(ByVal New_Val As String)
    Label1.ToolTipText = New_Val
    Text1.ToolTipText = New_Val
    PropertyChanged "tt"
End Property

Private Sub UserControl_WriteProperties(PropBag As PropertyBag)
    Call PropBag.WriteProperty("tt", Label1.ToolTipText, "")
..
End Sub

Private Sub UserControl_ReadProperties(PropBag As PropertyBag)
    Dim tmp As String
    tmp = PropBag.ReadProperty("tt", "")
    Label1.ToolTipText = tmp
    Text1.ToolTipText = tmp
..
End Sub
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
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…
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…

770 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