Solved

Exposing the tooltiptext property of UserControls

Posted on 1998-11-29
1
212 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

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
vb6 programatically bring window to front 8 76
VBA error replacing data 6 40
MS SQL store procedure to calculate and return result 6 63
vbModal 12 57
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

821 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