Solved

Exposing the tooltiptext property of UserControls

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
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.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

746 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

14 Experts available now in Live!

Get 1:1 Help Now