TheSonics
asked on
Yellow help box
Hello, i want to know how to show a yellow help box when the mouse is over a row from a datagrid.
Actually i have isolated the row I just need to know how to pop up the yellow help box when mouse over it. You know, this box that you don't need to click Ok or anything, just like a comment bubble.
Thanks
Actually i have isolated the row I just need to know how to pop up the yellow help box when mouse over it. You know, this box that you don't need to click Ok or anything, just like a comment bubble.
Thanks
ASKER
Yeah tooltip
ToolTip1 as New ToolTip
ToolTip1.setTip(control, string)
the problem is that i do not know what control to link with.
Framework 1.1
ToolTip1 as New ToolTip
ToolTip1.setTip(control, string)
the problem is that i do not know what control to link with.
Framework 1.1
ASKER
And to be more exact, i wish to link every component of my datagrid to a tooltip, i was thinking of doing a check on the row number and simply link to a column.
1) Use the DataGrid MouseMove event
2) Perform a HitTest on the mouse coordinates
3) Get the RowIndex from the HitTest
4) Get the value to display as help
5) Set the Tooltip to the DataGrid, and the help value that you got from the DataGrid.
Bob
2) Perform a HitTest on the mouse coordinates
3) Get the RowIndex from the HitTest
4) Get the value to display as help
5) Set the Tooltip to the DataGrid, and the help value that you got from the DataGrid.
Bob
ASKER
I did all of this, but the Tooltip is linked to the whole datagrid, so as long as the mouse is on the datagrid the tooltip stays poped
ASKER
Is there a way (like CType) that i could convert a System.Data.DataColumn to System.windows.form ?
Are you asking a different question, or does that apply to this question?
Bob
Bob
ASKER
Well, it is a clearer question :
Tooltip requires a control of type System.windows.form, linking to the whole DataGrid is working, but the tooltip will stay visible as long as the mouse is somewhere in the Datagrid (which represent the whole form). So I was kinda wondering if there was a way to link my Tiptool to the column. Another interesting would be to derivated a class where the visible option. I'd rather use some .NET tools.
Best Regards.
Tooltip requires a control of type System.windows.form, linking to the whole DataGrid is working, but the tooltip will stay visible as long as the mouse is somewhere in the Datagrid (which represent the whole form). So I was kinda wondering if there was a way to link my Tiptool to the column. Another interesting would be to derivated a class where the visible option. I'd rather use some .NET tools.
Best Regards.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
2) You are looking to set a ToolTip.
Bob