Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Troubleshooting
Research
Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

Increase time of tooltip

Avatar of kdeutsch
kdeutschFlag for United States of America asked on
.NET ProgrammingASP.NETVisual Basic.NET
16 Comments1 Solution735 ViewsLast Modified:
Problem is that the tooltip goes away after like 9 seconds.  Is there a way to increase this time limit on a tooltip.  I have rather large notes fields that they don't want to show everything so I truncate it and show a tooltip.  But I have not found a way to increase the viewing time of a tooltip.  This is in aasp.net 1.1.


<asp:TemplateColumn HeaderText="Notes">
										<ItemTemplate>
											<a title='<%# DataBinder.Eval(Container.DataItem, "strNotes").ToString() %>'>
												<%# Truncate(DataBinder.Eval(Container.DataItem, "strNotes").ToString(),10) %>
											</a>
										</ItemTemplate>
									</asp:TemplateColumn>



Public Function Truncate(ByVal input As String, ByVal characterLimit As Integer) As String
        Dim output As String = input

        ' Check if the string is longer than the allowed amount 
        ' otherwise do nothing 
        If output.Length > characterLimit AndAlso characterLimit > 0 Then

            ' cut the string down to the maximum number of characters 
            output = output.Substring(0, characterLimit)

            ' Check if the character right after the truncate point was a space 
            ' if not, we are in the middle of a word and need to remove the rest of it 
            If input.Substring(output.Length, 1) <> " " Then
                Dim LastSpace As Integer = output.LastIndexOf(" ")

                ' if we found a space then, cut back to that space 
                If LastSpace <> -1 Then
                    output = output.Substring(0, LastSpace)
                End If
            End If
            ' Finally, add the "..." 
            output += "..."
        End If
        Return output
    End Function
ASKER CERTIFIED SOLUTION
Avatar of strickdd
strickddFlag of United States of America image

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Commented:
This problem has been solved!
Unlock 1 Answer and 16 Comments.
See Answers