Forum Discussion

shrey1686's avatar
shrey1686
Occasional Contributor
9 years ago
Solved

How to get ToolTip Text ?

Hi Everyone,

 

I am using windows application.

 

Now I have a grid (table), and one of the cell of the table is a image, I want to get the tooltip text of the image.

 

Can anyone help on this ?

 

Thanks.

  •  

    Dim cell

    Dim ToolTipText

     

    Set cell =Aliases.XXX.MainForm.SplitterPanel2.gridTrades.Rows.Item(RowNumber).Cells.Item(ColumnNumber)

    ToolTipText=Aliases.XXX.MainForm.SplitterPanel2.gridTrades.GetToolTipText(cell)

    Msgbox ToolTipText

     

     

    So just give the RowNumber & ColumnNumber of the cell , foe which you want to get the ToolTip text. And then Use "GetToolTipText" method to get the tool tip text.

     

    Thanks.

1 Reply

  • shrey1686's avatar
    shrey1686
    Occasional Contributor

     

    Dim cell

    Dim ToolTipText

     

    Set cell =Aliases.XXX.MainForm.SplitterPanel2.gridTrades.Rows.Item(RowNumber).Cells.Item(ColumnNumber)

    ToolTipText=Aliases.XXX.MainForm.SplitterPanel2.gridTrades.GetToolTipText(cell)

    Msgbox ToolTipText

     

     

    So just give the RowNumber & ColumnNumber of the cell , foe which you want to get the ToolTip text. And then Use "GetToolTipText" method to get the tool tip text.

     

    Thanks.