Steve Lebans Tool Tips

S

Scientific

Hello,

Is there a way to setup Steve Lebans Tool Tips so that it can be turned
on/off from a checkbox. I have the code I'm using below:

Private Sub Form_Load()
Set TTip = New clsToolTip

Me.txtPersonnel.SetFocus

With TTip
Call .Create(Me)

.DelayTime = 10000
.SetToolTipTitle "BUBBLE HELP", 0
.ForeColor = vbBlack
.BackColor = RGB(255, 255, 255)

.SetToolText Me.txtFullName, "blah blah"
.SetToolText Me.cboCompany, "blah blah"
.SetToolText Me.cboContact, "blah blah"
End With
End Sub
 
A

Arvin Meyer MVP

I haven't used Stephen's Tool Tips, but in general you cannot set a checkbox
in the form's Load event. Several other possibilities come to mind:

1. If it isn't necessary to use the form's Load event, try using the form's
Current event with an unbound checkbox. Or, just code in the checkbox's
AfterUpdate event.

2. If the code requires the Load event, place the checkbox on another always
open form.
 
S

Scientific

Arvin,
2. If the code requires the Load event, place the checkbox on another always
open form.

Yes, the code requires the Load event but what would putting the checkbox on
another form accomplish. I don't get it. Would that allow me to turn things
on/off.


-S
 
S

Scientific

Arvin,

I found a better approach to Tooltips from other examples I read in this
forum. I think if I use a function and pass variables to it representing each
control and the text I want to assign to different labels, I could then wrap
that code inside a checkbox then turn if off/on. That would make things a
lot simpler.

Thank you for your input on this. I appreciate your reply.

-S
 
A

Arvin Meyer MVP

Scientific said:
Arvin,


Yes, the code requires the Load event but what would putting the checkbox
on
another form accomplish. I don't get it. Would that allow me to turn
things
on/off.

Sure because you'd turn them on/off before the form was loaded.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top